python-visual-update-express 1.0.2__py3-none-any.whl → 1.0.3__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.
- python_visual_update_express/application.py +0 -8
- python_visual_update_express/ui/updater_window.py +14 -2
- {python_visual_update_express-1.0.2.dist-info → python_visual_update_express-1.0.3.dist-info}/METADATA +8 -2
- {python_visual_update_express-1.0.2.dist-info → python_visual_update_express-1.0.3.dist-info}/RECORD +6 -6
- {python_visual_update_express-1.0.2.dist-info → python_visual_update_express-1.0.3.dist-info}/WHEEL +0 -0
- {python_visual_update_express-1.0.2.dist-info → python_visual_update_express-1.0.3.dist-info}/licenses/LICENSE +0 -0
|
@@ -1,18 +1,10 @@
|
|
|
1
1
|
from pathlib import Path
|
|
2
2
|
|
|
3
|
-
from PyQt6.QtWidgets import QApplication
|
|
4
|
-
|
|
5
|
-
from python_visual_update_express.data.general_settings import APP_STYLE
|
|
6
3
|
from python_visual_update_express.ui.updater_window import UpdaterWindow
|
|
7
4
|
|
|
8
5
|
TMP_UPDATE_BASE_URL = 'http://jelmerpijnappel.nl/releases/broers-optiek/lensplan-hulp-applicatie/'
|
|
9
6
|
TMP_CURRENT_UPDATE_VERSION = '1.3.0'
|
|
10
7
|
TMP_TARGET_DIR = str(Path(__file__).resolve().parent.parent / "target")
|
|
11
8
|
|
|
12
|
-
app = QApplication([])
|
|
13
|
-
app.setStyle(APP_STYLE)
|
|
14
|
-
|
|
15
9
|
window = UpdaterWindow(TMP_UPDATE_BASE_URL, TMP_CURRENT_UPDATE_VERSION, TMP_TARGET_DIR)
|
|
16
10
|
window.show()
|
|
17
|
-
|
|
18
|
-
app.exec()
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
from PyQt6.QtCore import QThreadPool, Qt, QSize
|
|
2
2
|
from PyQt6.QtGui import QGuiApplication
|
|
3
|
-
from PyQt6.QtWidgets import QMainWindow, QVBoxLayout, QWidget
|
|
3
|
+
from PyQt6.QtWidgets import QMainWindow, QVBoxLayout, QWidget, QApplication
|
|
4
4
|
from semver import Version
|
|
5
5
|
|
|
6
6
|
from python_visual_update_express.data import general_info
|
|
@@ -12,12 +12,18 @@ VERSION_PREFIX = 'v. '
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
class UpdaterWindow(QMainWindow):
|
|
15
|
+
app: QApplication
|
|
15
16
|
window_content: WindowContent
|
|
16
17
|
|
|
17
18
|
threadpool: QThreadPool
|
|
18
19
|
centered_on_init: bool = False
|
|
19
20
|
|
|
20
|
-
def __init__(self, update_base_url: str, current_update_version: str, target_directory_path: str
|
|
21
|
+
def __init__(self, update_base_url: str, current_update_version: str, target_directory_path: str,
|
|
22
|
+
create_q_application: bool = True) -> None:
|
|
23
|
+
if create_q_application:
|
|
24
|
+
self.app = QApplication([])
|
|
25
|
+
self.app.setStyle('Fusion')
|
|
26
|
+
|
|
21
27
|
super().__init__()
|
|
22
28
|
|
|
23
29
|
# GENERAL INFO
|
|
@@ -57,3 +63,9 @@ class UpdaterWindow(QMainWindow):
|
|
|
57
63
|
|
|
58
64
|
self.centered_on_init = True
|
|
59
65
|
return super().resizeEvent(event)
|
|
66
|
+
|
|
67
|
+
def show(self):
|
|
68
|
+
super().show()
|
|
69
|
+
|
|
70
|
+
if self.app:
|
|
71
|
+
self.app.exec()
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: python-visual-update-express
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.3
|
|
4
4
|
Summary: A dialog for updating specific files by syncing them from a server. Designed to work like InstallForge's "Visual Update Express".
|
|
5
5
|
Project-URL: Homepage, https://github.com/ChocolatePinecone/python-generic-updater
|
|
6
6
|
Project-URL: Issues, https://github.com/ChocolatePinecone/python-generic-updater/issues
|
|
@@ -44,7 +44,13 @@ UPDATE_BASE_URL = 'https://yoursite.com/releases/yourapplication/'
|
|
|
44
44
|
CURRENT_VERSION = '1.0.1'
|
|
45
45
|
UPDATE_TARGET_DIR = 'C:/yourlocationpath'
|
|
46
46
|
|
|
47
|
-
|
|
47
|
+
# If you are using have a PyQt6 QApplication set up, please indicate this to the UpdaterWindow by
|
|
48
|
+
# setting the create_q_application parameter to 'False'.
|
|
49
|
+
# Otherwise the UpdateWindow will create another QApplication, causing issues with PyQt.
|
|
50
|
+
# If you don't have a PyQt6 QApplication set up, please omit the create_q_application parameter
|
|
51
|
+
# so the updater will a QApplication up internally.
|
|
52
|
+
updater_window = UpdaterWindow(UPDATE_BASE_URL, CURRENT_VERSION, UPDATE_TARGET_DIR, False)
|
|
53
|
+
|
|
48
54
|
```
|
|
49
55
|
|
|
50
56
|
Then when you are ready, simply call `show` on the window to start the updater:
|
{python_visual_update_express-1.0.2.dist-info → python_visual_update_express-1.0.3.dist-info}/RECORD
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
python_visual_update_express/__init__.py,sha256=STZKiHSDY5x_kCtIrQQnXpaCvpXzddlEYkhNa_Oj7VQ,44
|
|
2
|
-
python_visual_update_express/application.py,sha256=
|
|
2
|
+
python_visual_update_express/application.py,sha256=IbyMIEbokVc6qZ6fWjq__imbJGG14zgMWPG-Xe4PD-M,411
|
|
3
3
|
python_visual_update_express/data/general_info.py,sha256=Gh6ABo3SZ1EGh34guU90uUbtys8rRqciYZzQfQtkXak,285
|
|
4
4
|
python_visual_update_express/data/general_settings.py,sha256=vYWr1croCKrYMTKGzLu56vwQF8WG-SujO_JPFsLRQsI,176
|
|
5
5
|
python_visual_update_express/libs/file_download.py,sha256=HJ1BDAUTSkjnDLsZbLzla9b05voXy1xkv49aUACIAmg,667
|
|
@@ -11,9 +11,9 @@ python_visual_update_express/ui/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm
|
|
|
11
11
|
python_visual_update_express/ui/error_handling.py,sha256=Qzy8AlYfSaKF8vUBWWqRQQp6udu1pGjKD1F4K0Xvj8Q,447
|
|
12
12
|
python_visual_update_express/ui/notifications.py,sha256=uGT83XI9xwLz13vo1oPiaBcTZeyEjtIkyl1jfjQmDq0,338
|
|
13
13
|
python_visual_update_express/ui/status_text_widget.py,sha256=E5LJZjtYVY2HPA_5xSr8ZoJcwDsnZ_xF_U4Q862trnc,2760
|
|
14
|
-
python_visual_update_express/ui/updater_window.py,sha256=
|
|
14
|
+
python_visual_update_express/ui/updater_window.py,sha256=GhfwvjfDst6n49-RrS8eNAFd2kOADdJbwfje6LCgz90,2333
|
|
15
15
|
python_visual_update_express/ui/window_content.py,sha256=cd58CgENl0jE5peGkyiMeldEuYojHIvMY-XDoifro-s,9049
|
|
16
|
-
python_visual_update_express-1.0.
|
|
17
|
-
python_visual_update_express-1.0.
|
|
18
|
-
python_visual_update_express-1.0.
|
|
19
|
-
python_visual_update_express-1.0.
|
|
16
|
+
python_visual_update_express-1.0.3.dist-info/METADATA,sha256=4ned2mPabL1MgXjioFp4sMd6e2XNxKVO3gf0ExYtPVA,2962
|
|
17
|
+
python_visual_update_express-1.0.3.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
18
|
+
python_visual_update_express-1.0.3.dist-info/licenses/LICENSE,sha256=8XfFtZzNlgbVIWPbv6B-Nmmptkxh4-B0h7YDKShpxAY,364
|
|
19
|
+
python_visual_update_express-1.0.3.dist-info/RECORD,,
|
{python_visual_update_express-1.0.2.dist-info → python_visual_update_express-1.0.3.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|