rbeesoft 1.0.4__py3-none-any.whl → 1.0.6__py3-none-any.whl
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/ui/mainwindow.py +21 -4
- {rbeesoft-1.0.4.dist-info → rbeesoft-1.0.6.dist-info}/METADATA +1 -1
- {rbeesoft-1.0.4.dist-info → rbeesoft-1.0.6.dist-info}/RECORD +6 -6
- {rbeesoft-1.0.4.dist-info → rbeesoft-1.0.6.dist-info}/LICENSE +0 -0
- {rbeesoft-1.0.4.dist-info → rbeesoft-1.0.6.dist-info}/WHEEL +0 -0
- {rbeesoft-1.0.4.dist-info → rbeesoft-1.0.6.dist-info}/entry_points.txt +0 -0
rbeesoft/ui/mainwindow.py
CHANGED
|
@@ -15,20 +15,37 @@ from rbeesoft.ui.utils import resource_path, version
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
class MainWindow(QMainWindow):
|
|
18
|
-
def __init__(self):
|
|
18
|
+
def __init__(self, title, app_name, version, icon):
|
|
19
19
|
super(MainWindow, self).__init__()
|
|
20
|
+
self._title = title
|
|
21
|
+
self._app_name = app_name
|
|
22
|
+
self._version = version
|
|
23
|
+
self._icon = icon
|
|
20
24
|
self._settings = None
|
|
21
25
|
self.init_window()
|
|
22
26
|
|
|
23
27
|
def init_window(self):
|
|
24
|
-
self.setWindowTitle(f'{
|
|
25
|
-
self.setWindowIcon(QIcon(resource_path(os.path.join(
|
|
26
|
-
|
|
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
|
+
self.setWindowIcon(self.icon())
|
|
27
32
|
if not self.load_geometry_and_state():
|
|
28
33
|
self.set_default_size_and_position()
|
|
29
34
|
|
|
30
35
|
# GETTERS
|
|
31
36
|
|
|
37
|
+
def title(self):
|
|
38
|
+
return self._title
|
|
39
|
+
|
|
40
|
+
def app_name(self):
|
|
41
|
+
return self._app_name
|
|
42
|
+
|
|
43
|
+
def version(self):
|
|
44
|
+
return self._version
|
|
45
|
+
|
|
46
|
+
def icon(self):
|
|
47
|
+
return self._icon
|
|
48
|
+
|
|
32
49
|
def settings(self):
|
|
33
50
|
if not self._settings:
|
|
34
51
|
self._settings = Settings()
|
|
@@ -14,7 +14,7 @@ rbeesoft/ui/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
|
14
14
|
rbeesoft/ui/components/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
15
15
|
rbeesoft/ui/components/splashscreen.py,sha256=yEsB4LRho84O2JwVwPX6BoQZ3IK3iwFWrL6G7sRn0JE,4872
|
|
16
16
|
rbeesoft/ui/constants.py,sha256=joQSsHIXiy21l6SRZz-kjp9kFVCNZjlg4bzHwdt1oIs,2028
|
|
17
|
-
rbeesoft/ui/mainwindow.py,sha256=
|
|
17
|
+
rbeesoft/ui/mainwindow.py,sha256=Hycj-TtqPQ79UOjpC-NYQDyqs9ZDh00uy_aTzEdtJqE,2625
|
|
18
18
|
rbeesoft/ui/panels/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
19
19
|
rbeesoft/ui/panels/defaultpanel.py,sha256=eZpieFy9S1NStsCT7DhLHlmZchD-cZ3EJKkH9uTxat8,290
|
|
20
20
|
rbeesoft/ui/panels/logpanel.py,sha256=JcBuqreih-7QxB9iJNfgPaqVpT98YrkC9U0rOOg6VHk,1639
|
|
@@ -23,8 +23,8 @@ rbeesoft/ui/panels/settingspanel.py,sha256=laBOH0C3X5XZkYxlEQijJCNc9SMNVUka0T9C0
|
|
|
23
23
|
rbeesoft/ui/panels/stackedpanel.py,sha256=dK1YWuHUzxRhVb5gP0Lu9rAiW4XagjcHmGF__5Lpufk,657
|
|
24
24
|
rbeesoft/ui/settings.py,sha256=V-u1bXaSv1jdZnTqh_4Sw-EoMi2-IoFIoVDidc099qY,1008
|
|
25
25
|
rbeesoft/ui/utils.py,sha256=udZZs8iy2T6k9e7ADGzhYQ1caig-Zpm0AKy6woxRcqc,797
|
|
26
|
-
rbeesoft-1.0.
|
|
27
|
-
rbeesoft-1.0.
|
|
28
|
-
rbeesoft-1.0.
|
|
29
|
-
rbeesoft-1.0.
|
|
30
|
-
rbeesoft-1.0.
|
|
26
|
+
rbeesoft-1.0.6.dist-info/entry_points.txt,sha256=TxyAieXCBttKeq8DjKk6o15iqnWpjj9FOtGknE5wKI0,46
|
|
27
|
+
rbeesoft-1.0.6.dist-info/LICENSE,sha256=IwGE9guuL-ryRPEKi6wFPI_zOhg7zDZbTYuHbSt_SAk,35823
|
|
28
|
+
rbeesoft-1.0.6.dist-info/METADATA,sha256=bcJWa2F9KDaGPsHpkucnGzXobmClQcBn06ITr5ToomE,588
|
|
29
|
+
rbeesoft-1.0.6.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
|
30
|
+
rbeesoft-1.0.6.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|