pyPDFeditor-GUI 3.1.0__tar.gz → 3.1.2__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.
- {pypdfeditor_gui-3.1.0 → pypdfeditor_gui-3.1.2}/LICENSE +1 -1
- {pypdfeditor_gui-3.1.0 → pypdfeditor_gui-3.1.2}/PKG-INFO +2 -2
- {pypdfeditor_gui-3.1.0 → pypdfeditor_gui-3.1.2}/pyPDFeditor_GUI.egg-info/PKG-INFO +2 -2
- {pypdfeditor_gui-3.1.0 → pypdfeditor_gui-3.1.2}/pyPDFeditor_GUI.egg-info/entry_points.txt +1 -1
- {pypdfeditor_gui-3.1.0 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/__init__.py +1 -1
- {pypdfeditor_gui-3.1.0 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/windows.py +13 -5
- {pypdfeditor_gui-3.1.0 → pypdfeditor_gui-3.1.2}/setup.py +7 -4
- {pypdfeditor_gui-3.1.0 → pypdfeditor_gui-3.1.2}/README.md +0 -0
- {pypdfeditor_gui-3.1.0 → pypdfeditor_gui-3.1.2}/pyPDFeditor_GUI.egg-info/SOURCES.txt +0 -0
- {pypdfeditor_gui-3.1.0 → pypdfeditor_gui-3.1.2}/pyPDFeditor_GUI.egg-info/dependency_links.txt +0 -0
- {pypdfeditor_gui-3.1.0 → pypdfeditor_gui-3.1.2}/pyPDFeditor_GUI.egg-info/requires.txt +0 -0
- {pypdfeditor_gui-3.1.0 → pypdfeditor_gui-3.1.2}/pyPDFeditor_GUI.egg-info/top_level.txt +0 -0
- {pypdfeditor_gui-3.1.0 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/__main__.py +0 -0
- {pypdfeditor_gui-3.1.0 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/application.py +0 -0
- {pypdfeditor_gui-3.1.0 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/functions.py +0 -0
- {pypdfeditor_gui-3.1.0 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/icons/Add.svg +0 -0
- {pypdfeditor_gui-3.1.0 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/icons/Add_h.svg +0 -0
- {pypdfeditor_gui-3.1.0 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/icons/Add_p.svg +0 -0
- {pypdfeditor_gui-3.1.0 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/icons/Photo.svg +0 -0
- {pypdfeditor_gui-3.1.0 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/icons/__init__.py +0 -0
- {pypdfeditor_gui-3.1.0 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/icons/arrow_move.svg +0 -0
- {pypdfeditor_gui-3.1.0 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/icons/book2.svg +0 -0
- {pypdfeditor_gui-3.1.0 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/icons/chevron_down.svg +0 -0
- {pypdfeditor_gui-3.1.0 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/icons/color.svg +0 -0
- {pypdfeditor_gui-3.1.0 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/icons/color_h.svg +0 -0
- {pypdfeditor_gui-3.1.0 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/icons/color_p.svg +0 -0
- {pypdfeditor_gui-3.1.0 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/icons/delete.svg +0 -0
- {pypdfeditor_gui-3.1.0 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/icons/delete_h.svg +0 -0
- {pypdfeditor_gui-3.1.0 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/icons/delete_p.svg +0 -0
- {pypdfeditor_gui-3.1.0 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/icons/dismiss.svg +0 -0
- {pypdfeditor_gui-3.1.0 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/icons/dismiss_h.svg +0 -0
- {pypdfeditor_gui-3.1.0 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/icons/down.svg +0 -0
- {pypdfeditor_gui-3.1.0 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/icons/down_h.svg +0 -0
- {pypdfeditor_gui-3.1.0 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/icons/down_p.svg +0 -0
- {pypdfeditor_gui-3.1.0 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/icons/edit.svg +0 -0
- {pypdfeditor_gui-3.1.0 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/icons/folder.svg +0 -0
- {pypdfeditor_gui-3.1.0 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/icons/folder_d.svg +0 -0
- {pypdfeditor_gui-3.1.0 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/icons/folder_h.svg +0 -0
- {pypdfeditor_gui-3.1.0 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/icons/folder_p.svg +0 -0
- {pypdfeditor_gui-3.1.0 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/icons/font.svg +0 -0
- {pypdfeditor_gui-3.1.0 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/icons/font_h.svg +0 -0
- {pypdfeditor_gui-3.1.0 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/icons/font_p.svg +0 -0
- {pypdfeditor_gui-3.1.0 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/icons/home.svg +0 -0
- {pypdfeditor_gui-3.1.0 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/icons/lock.svg +0 -0
- {pypdfeditor_gui-3.1.0 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/icons/maximize.svg +0 -0
- {pypdfeditor_gui-3.1.0 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/icons/merge.svg +0 -0
- {pypdfeditor_gui-3.1.0 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/icons/metadata.svg +0 -0
- {pypdfeditor_gui-3.1.0 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/icons/minimize.svg +0 -0
- {pypdfeditor_gui-3.1.0 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/icons/more.svg +0 -0
- {pypdfeditor_gui-3.1.0 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/icons/more_d.svg +0 -0
- {pypdfeditor_gui-3.1.0 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/icons/more_h.svg +0 -0
- {pypdfeditor_gui-3.1.0 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/icons/more_p.svg +0 -0
- {pypdfeditor_gui-3.1.0 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/icons/move_page.svg +0 -0
- {pypdfeditor_gui-3.1.0 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/icons/pdf icon.svg +0 -0
- {pypdfeditor_gui-3.1.0 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/icons/rotate_anticlockwise.svg +0 -0
- {pypdfeditor_gui-3.1.0 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/icons/rotate_clockwise.svg +0 -0
- {pypdfeditor_gui-3.1.0 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/icons/settings.svg +0 -0
- {pypdfeditor_gui-3.1.0 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/icons/settings_h.svg +0 -0
- {pypdfeditor_gui-3.1.0 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/icons/settings_p.svg +0 -0
- {pypdfeditor_gui-3.1.0 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/icons/square_multiple.svg +0 -0
- {pypdfeditor_gui-3.1.0 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/icons/sync.svg +0 -0
- {pypdfeditor_gui-3.1.0 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/icons/sync_h.svg +0 -0
- {pypdfeditor_gui-3.1.0 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/icons/sync_p.svg +0 -0
- {pypdfeditor_gui-3.1.0 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/icons/view.svg +0 -0
- {pypdfeditor_gui-3.1.0 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/icons/view_h.svg +0 -0
- {pypdfeditor_gui-3.1.0 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/icons/view_p.svg +0 -0
- {pypdfeditor_gui-3.1.0 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/language.py +0 -0
- {pypdfeditor_gui-3.1.0 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/style_sheets.py +0 -0
- {pypdfeditor_gui-3.1.0 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/window_effect.py +0 -0
- {pypdfeditor_gui-3.1.0 → pypdfeditor_gui-3.1.2}/setup.cfg +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pyPDFeditor-GUI
|
|
3
|
-
Version: 3.1.
|
|
4
|
-
Summary: A desktop application to edit PDF files
|
|
3
|
+
Version: 3.1.2
|
|
4
|
+
Summary: A desktop application to edit PDF files
|
|
5
5
|
Home-page: https://github.com/Augus1999/pyPDFeditor-GUI/
|
|
6
6
|
Author: Nianze A. TAO
|
|
7
7
|
Author-email: Augus_1999@outlook.com
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pyPDFeditor-GUI
|
|
3
|
-
Version: 3.1.
|
|
4
|
-
Summary: A desktop application to edit PDF files
|
|
3
|
+
Version: 3.1.2
|
|
4
|
+
Summary: A desktop application to edit PDF files
|
|
5
5
|
Home-page: https://github.com/Augus1999/pyPDFeditor-GUI/
|
|
6
6
|
Author: Nianze A. TAO
|
|
7
7
|
Author-email: Augus_1999@outlook.com
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
[
|
|
1
|
+
[gui_scripts]
|
|
2
2
|
pdfeditor = pypdfeditor_core:main
|
|
@@ -438,6 +438,7 @@ class MainR(QTabWidget):
|
|
|
438
438
|
self.btn_ext_2.clicked.connect(self.close)
|
|
439
439
|
self.btn_ext_3.clicked.connect(self.close)
|
|
440
440
|
self.btn_ext_4.clicked.connect(self.close)
|
|
441
|
+
import winreg as wrg
|
|
441
442
|
from .window_effect import WindowEffect, MSG
|
|
442
443
|
|
|
443
444
|
self.windowEffect = WindowEffect()
|
|
@@ -445,12 +446,19 @@ class MainR(QTabWidget):
|
|
|
445
446
|
self._title_bar_pos = [
|
|
446
447
|
QtCore.QPoint(x, y) for x in range(1200) for y in range(52)
|
|
447
448
|
]
|
|
448
|
-
self.setWindowFlags(QtCore.Qt.WindowType.FramelessWindowHint)
|
|
449
|
+
# self.setWindowFlags(QtCore.Qt.WindowType.FramelessWindowHint)
|
|
450
|
+
self.setWindowFlags(QtCore.Qt.WindowType.BypassWindowManagerHint)
|
|
449
451
|
self.windowEffect.add_shadow_effect(int(self.winId()))
|
|
450
452
|
self.windowEffect.add_window_style(int(self.winId()))
|
|
451
453
|
self.windowHandle().screenChanged.connect(
|
|
452
454
|
lambda: self.windowEffect.screen_change(int(self.winId())),
|
|
453
455
|
)
|
|
456
|
+
try:
|
|
457
|
+
_loc = wrg.HKEY_CURRENT_USER
|
|
458
|
+
_wm = wrg.OpenKeyEx(_loc, r"Control Panel\Desktop\WindowMetrics")
|
|
459
|
+
self._border = -int(wrg.QueryValueEx(_wm, "BorderWidth")[0])
|
|
460
|
+
except OSError:
|
|
461
|
+
self._border = 20
|
|
454
462
|
else:
|
|
455
463
|
self.tab1.grid.addWidget(self.tab1.button3, 0, 20)
|
|
456
464
|
self.tab2.grid.addWidget(self.tab2.button3, 0, 20)
|
|
@@ -525,10 +533,10 @@ class MainR(QTabWidget):
|
|
|
525
533
|
x_pos = QCursor.pos().x() - self.frameGeometry().x()
|
|
526
534
|
y_pos = QCursor.pos().y() - self.frameGeometry().y()
|
|
527
535
|
btn = self.findChildren(QPushButton, f"max{i}")[0]
|
|
528
|
-
lx = x_pos <
|
|
529
|
-
rx = x_pos > self.width() -
|
|
530
|
-
ty = y_pos <
|
|
531
|
-
by = y_pos > self.height() -
|
|
536
|
+
lx = x_pos < self._border // 4
|
|
537
|
+
rx = x_pos > self.width() - self._border // 4 - 10
|
|
538
|
+
ty = y_pos < self._border // 4
|
|
539
|
+
by = y_pos > self.height() - self._border // 4
|
|
532
540
|
if QtCore.QPoint(x_pos - btn.width(), y_pos) in btn.geometry():
|
|
533
541
|
return True, 9 # HTMAXBUTTON
|
|
534
542
|
if lx and ty:
|
|
@@ -32,13 +32,16 @@ long_description = long_description.replace(
|
|
|
32
32
|
setup(
|
|
33
33
|
name="pyPDFeditor-GUI",
|
|
34
34
|
version=version,
|
|
35
|
-
description="A desktop application to edit PDF files
|
|
35
|
+
description="A desktop application to edit PDF files",
|
|
36
36
|
long_description=long_description,
|
|
37
37
|
long_description_content_type="text/markdown",
|
|
38
38
|
author="Nianze A. TAO",
|
|
39
39
|
author_email="Augus_1999@outlook.com",
|
|
40
|
-
packages=["pypdfeditor_core"],
|
|
41
|
-
package_dir={
|
|
40
|
+
packages=["pypdfeditor_core", "pypdfeditor_core.icons"],
|
|
41
|
+
package_dir={
|
|
42
|
+
"pypdfeditor_core": "pypdfeditor_core",
|
|
43
|
+
"pypdfeditor_core.icons": "pypdfeditor_core/icons",
|
|
44
|
+
},
|
|
42
45
|
license="MIT",
|
|
43
46
|
python_requires=">=3.10",
|
|
44
47
|
install_requires=["PyMuPDF>=1.26.5,<1.28.0", "PyQt6>=6.7.0"],
|
|
@@ -58,7 +61,7 @@ setup(
|
|
|
58
61
|
"Programming Language :: Python :: 3",
|
|
59
62
|
"Topic :: Office/Business",
|
|
60
63
|
],
|
|
61
|
-
entry_points={"
|
|
64
|
+
entry_points={"gui_scripts": ["pdfeditor=pypdfeditor_core:main"]},
|
|
62
65
|
)
|
|
63
66
|
|
|
64
67
|
if os.path.exists("build"):
|
|
File without changes
|
|
File without changes
|
{pypdfeditor_gui-3.1.0 → pypdfeditor_gui-3.1.2}/pyPDFeditor_GUI.egg-info/dependency_links.txt
RENAMED
|
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
|
|
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
|
{pypdfeditor_gui-3.1.0 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/icons/rotate_anticlockwise.svg
RENAMED
|
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
|