rbeesoft 1.0.8__tar.gz → 1.0.9__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {rbeesoft-1.0.8 → rbeesoft-1.0.9}/PKG-INFO +1 -1
- {rbeesoft-1.0.8 → rbeesoft-1.0.9}/pyproject.toml +1 -1
- {rbeesoft-1.0.8 → rbeesoft-1.0.9}/rbeesoft/ui/mainwindow.py +28 -12
- {rbeesoft-1.0.8 → rbeesoft-1.0.9}/LICENSE +0 -0
- {rbeesoft-1.0.8 → rbeesoft-1.0.9}/README.md +0 -0
- {rbeesoft-1.0.8 → rbeesoft-1.0.9}/rbeesoft/__init__.py +0 -0
- {rbeesoft-1.0.8 → rbeesoft-1.0.9}/rbeesoft/app.py +0 -0
- {rbeesoft-1.0.8 → rbeesoft-1.0.9}/rbeesoft/core/__init__.py +0 -0
- {rbeesoft-1.0.8 → rbeesoft-1.0.9}/rbeesoft/core/singleton.py +0 -0
- {rbeesoft-1.0.8 → rbeesoft-1.0.9}/rbeesoft/core/utils/___init__.py +0 -0
- {rbeesoft-1.0.8 → rbeesoft-1.0.9}/rbeesoft/core/utils/functions.py +0 -0
- {rbeesoft-1.0.8 → rbeesoft-1.0.9}/rbeesoft/core/utils/logmanager.py +0 -0
- {rbeesoft-1.0.8 → rbeesoft-1.0.9}/rbeesoft/core/utils/logmanagerlistener.py +0 -0
- {rbeesoft-1.0.8 → rbeesoft-1.0.9}/rbeesoft/resources/VERSION +0 -0
- {rbeesoft-1.0.8 → rbeesoft-1.0.9}/rbeesoft/resources/icons/rbeesoft.icns +0 -0
- {rbeesoft-1.0.8 → rbeesoft-1.0.9}/rbeesoft/resources/icons/rbeesoft.ico +0 -0
- {rbeesoft-1.0.8 → rbeesoft-1.0.9}/rbeesoft/resources/icons/spinner.gif +0 -0
- {rbeesoft-1.0.8 → rbeesoft-1.0.9}/rbeesoft/ui/__init__.py +0 -0
- {rbeesoft-1.0.8 → rbeesoft-1.0.9}/rbeesoft/ui/components/__init__.py +0 -0
- {rbeesoft-1.0.8 → rbeesoft-1.0.9}/rbeesoft/ui/components/splashscreen.py +0 -0
- {rbeesoft-1.0.8 → rbeesoft-1.0.9}/rbeesoft/ui/constants.py +0 -0
- {rbeesoft-1.0.8 → rbeesoft-1.0.9}/rbeesoft/ui/panels/__init__.py +0 -0
- {rbeesoft-1.0.8 → rbeesoft-1.0.9}/rbeesoft/ui/panels/defaultpanel.py +0 -0
- {rbeesoft-1.0.8 → rbeesoft-1.0.9}/rbeesoft/ui/panels/logpanel.py +0 -0
- {rbeesoft-1.0.8 → rbeesoft-1.0.9}/rbeesoft/ui/panels/mainpanel.py +0 -0
- {rbeesoft-1.0.8 → rbeesoft-1.0.9}/rbeesoft/ui/panels/settingspanel.py +0 -0
- {rbeesoft-1.0.8 → rbeesoft-1.0.9}/rbeesoft/ui/panels/stackedpanel.py +0 -0
- {rbeesoft-1.0.8 → rbeesoft-1.0.9}/rbeesoft/ui/settings.py +0 -0
- {rbeesoft-1.0.8 → rbeesoft-1.0.9}/rbeesoft/ui/utils.py +0 -0
|
@@ -5,13 +5,12 @@ from PySide6.QtWidgets import (
|
|
|
5
5
|
)
|
|
6
6
|
from PySide6.QtGui import (
|
|
7
7
|
QGuiApplication,
|
|
8
|
-
|
|
8
|
+
QAction,
|
|
9
9
|
)
|
|
10
10
|
from PySide6.QtCore import Qt, QByteArray
|
|
11
11
|
|
|
12
12
|
from rbeesoft.ui.constants import Constants
|
|
13
13
|
from rbeesoft.ui.settings import Settings
|
|
14
|
-
from rbeesoft.ui.utils import resource_path, version
|
|
15
14
|
|
|
16
15
|
|
|
17
16
|
class MainWindow(QMainWindow):
|
|
@@ -24,16 +23,7 @@ class MainWindow(QMainWindow):
|
|
|
24
23
|
self._settings = None
|
|
25
24
|
self.init_window()
|
|
26
25
|
|
|
27
|
-
|
|
28
|
-
self.setWindowTitle(f'{self.title()} {self.version()}')
|
|
29
|
-
# self.setWindowIcon(QIcon(resource_path(os.path.join(
|
|
30
|
-
# Constants.RBEESOFT_RESOURCES_IMAGES_ICONS_DIR, Constants.RBEESOFT_RESOURCES_ICON))))
|
|
31
|
-
if self.icon():
|
|
32
|
-
self.setWindowIcon(self.icon())
|
|
33
|
-
if not self.load_geometry_and_state():
|
|
34
|
-
self.set_default_size_and_position()
|
|
35
|
-
|
|
36
|
-
# GETTERS
|
|
26
|
+
# GET
|
|
37
27
|
|
|
38
28
|
def title(self):
|
|
39
29
|
return self._title
|
|
@@ -52,6 +42,32 @@ class MainWindow(QMainWindow):
|
|
|
52
42
|
self._settings = Settings()
|
|
53
43
|
return self._settings
|
|
54
44
|
|
|
45
|
+
# SET
|
|
46
|
+
|
|
47
|
+
def set_status(self, message):
|
|
48
|
+
self.statusBar().showMessage(message)
|
|
49
|
+
|
|
50
|
+
# INITIALIZATION
|
|
51
|
+
|
|
52
|
+
def init_window(self):
|
|
53
|
+
self.setWindowTitle(f'{self.title()} {self.version()}')
|
|
54
|
+
if self.icon():
|
|
55
|
+
self.setWindowIcon(self.icon())
|
|
56
|
+
if not self.load_geometry_and_state():
|
|
57
|
+
self.set_default_size_and_position()
|
|
58
|
+
self.init_app_menu()
|
|
59
|
+
|
|
60
|
+
def init_app_menu(self):
|
|
61
|
+
exit_action = QAction(Constants.RBEESOFT_APP_MENU_EXIT_ACTION_TEXT, self)
|
|
62
|
+
exit_action.triggered.connect(self.close)
|
|
63
|
+
app_menu = self.menuBar().addMenu(Constants.RBEESOFT_APP_MENU_TEXT)
|
|
64
|
+
app_menu.addAction(exit_action)
|
|
65
|
+
|
|
66
|
+
def init_status_bar(self):
|
|
67
|
+
self.set_status(Constants.RBEESOFT_STATUS_READY)
|
|
68
|
+
|
|
69
|
+
# EVENT HANDLERS
|
|
70
|
+
|
|
55
71
|
def closeEvent(self, event):
|
|
56
72
|
self.save_geometry_and_state()
|
|
57
73
|
return super().closeEvent(event)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|