Skip to content

Commit

Permalink
[feat] 增加版本号显示
Browse files Browse the repository at this point in the history
  • Loading branch information
HsOjo committed Dec 23, 2022
1 parent 6210379 commit f93e349
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions app/const.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
class Const:
project = 'OjoDnfExtractor'
version = '1.1.0'
4 changes: 3 additions & 1 deletion app/main/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,17 @@

from PyQt6.QtWidgets import QMainWindow, QFileDialog

from app.res.window.main.self import Ui_MainWindow
from app.const import Const
from app.main.widget.img import IMGWidget
from app.main.widget.npk import NPKWidget
from app.res.window.main.self import Ui_MainWindow


class MainWindow(Ui_MainWindow, QMainWindow):
def __init__(self, upper_event):
super().__init__()
self.setupUi(self)
self.setWindowTitle(f'{Const.project} ({Const.version})')

self._extract_dir = None
self._extract_mode = 'wodir'
Expand Down

0 comments on commit f93e349

Please sign in to comment.