pyPDFeditor-GUI 3.1.1__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.
Files changed (70) hide show
  1. {pypdfeditor_gui-3.1.1 → pypdfeditor_gui-3.1.2}/PKG-INFO +1 -1
  2. {pypdfeditor_gui-3.1.1 → pypdfeditor_gui-3.1.2}/pyPDFeditor_GUI.egg-info/PKG-INFO +1 -1
  3. {pypdfeditor_gui-3.1.1 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/__init__.py +1 -1
  4. {pypdfeditor_gui-3.1.1 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/windows.py +13 -5
  5. {pypdfeditor_gui-3.1.1 → pypdfeditor_gui-3.1.2}/setup.py +4 -1
  6. {pypdfeditor_gui-3.1.1 → pypdfeditor_gui-3.1.2}/LICENSE +0 -0
  7. {pypdfeditor_gui-3.1.1 → pypdfeditor_gui-3.1.2}/README.md +0 -0
  8. {pypdfeditor_gui-3.1.1 → pypdfeditor_gui-3.1.2}/pyPDFeditor_GUI.egg-info/SOURCES.txt +0 -0
  9. {pypdfeditor_gui-3.1.1 → pypdfeditor_gui-3.1.2}/pyPDFeditor_GUI.egg-info/dependency_links.txt +0 -0
  10. {pypdfeditor_gui-3.1.1 → pypdfeditor_gui-3.1.2}/pyPDFeditor_GUI.egg-info/entry_points.txt +0 -0
  11. {pypdfeditor_gui-3.1.1 → pypdfeditor_gui-3.1.2}/pyPDFeditor_GUI.egg-info/requires.txt +0 -0
  12. {pypdfeditor_gui-3.1.1 → pypdfeditor_gui-3.1.2}/pyPDFeditor_GUI.egg-info/top_level.txt +0 -0
  13. {pypdfeditor_gui-3.1.1 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/__main__.py +0 -0
  14. {pypdfeditor_gui-3.1.1 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/application.py +0 -0
  15. {pypdfeditor_gui-3.1.1 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/functions.py +0 -0
  16. {pypdfeditor_gui-3.1.1 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/icons/Add.svg +0 -0
  17. {pypdfeditor_gui-3.1.1 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/icons/Add_h.svg +0 -0
  18. {pypdfeditor_gui-3.1.1 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/icons/Add_p.svg +0 -0
  19. {pypdfeditor_gui-3.1.1 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/icons/Photo.svg +0 -0
  20. {pypdfeditor_gui-3.1.1 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/icons/__init__.py +0 -0
  21. {pypdfeditor_gui-3.1.1 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/icons/arrow_move.svg +0 -0
  22. {pypdfeditor_gui-3.1.1 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/icons/book2.svg +0 -0
  23. {pypdfeditor_gui-3.1.1 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/icons/chevron_down.svg +0 -0
  24. {pypdfeditor_gui-3.1.1 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/icons/color.svg +0 -0
  25. {pypdfeditor_gui-3.1.1 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/icons/color_h.svg +0 -0
  26. {pypdfeditor_gui-3.1.1 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/icons/color_p.svg +0 -0
  27. {pypdfeditor_gui-3.1.1 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/icons/delete.svg +0 -0
  28. {pypdfeditor_gui-3.1.1 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/icons/delete_h.svg +0 -0
  29. {pypdfeditor_gui-3.1.1 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/icons/delete_p.svg +0 -0
  30. {pypdfeditor_gui-3.1.1 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/icons/dismiss.svg +0 -0
  31. {pypdfeditor_gui-3.1.1 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/icons/dismiss_h.svg +0 -0
  32. {pypdfeditor_gui-3.1.1 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/icons/down.svg +0 -0
  33. {pypdfeditor_gui-3.1.1 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/icons/down_h.svg +0 -0
  34. {pypdfeditor_gui-3.1.1 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/icons/down_p.svg +0 -0
  35. {pypdfeditor_gui-3.1.1 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/icons/edit.svg +0 -0
  36. {pypdfeditor_gui-3.1.1 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/icons/folder.svg +0 -0
  37. {pypdfeditor_gui-3.1.1 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/icons/folder_d.svg +0 -0
  38. {pypdfeditor_gui-3.1.1 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/icons/folder_h.svg +0 -0
  39. {pypdfeditor_gui-3.1.1 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/icons/folder_p.svg +0 -0
  40. {pypdfeditor_gui-3.1.1 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/icons/font.svg +0 -0
  41. {pypdfeditor_gui-3.1.1 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/icons/font_h.svg +0 -0
  42. {pypdfeditor_gui-3.1.1 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/icons/font_p.svg +0 -0
  43. {pypdfeditor_gui-3.1.1 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/icons/home.svg +0 -0
  44. {pypdfeditor_gui-3.1.1 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/icons/lock.svg +0 -0
  45. {pypdfeditor_gui-3.1.1 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/icons/maximize.svg +0 -0
  46. {pypdfeditor_gui-3.1.1 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/icons/merge.svg +0 -0
  47. {pypdfeditor_gui-3.1.1 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/icons/metadata.svg +0 -0
  48. {pypdfeditor_gui-3.1.1 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/icons/minimize.svg +0 -0
  49. {pypdfeditor_gui-3.1.1 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/icons/more.svg +0 -0
  50. {pypdfeditor_gui-3.1.1 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/icons/more_d.svg +0 -0
  51. {pypdfeditor_gui-3.1.1 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/icons/more_h.svg +0 -0
  52. {pypdfeditor_gui-3.1.1 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/icons/more_p.svg +0 -0
  53. {pypdfeditor_gui-3.1.1 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/icons/move_page.svg +0 -0
  54. {pypdfeditor_gui-3.1.1 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/icons/pdf icon.svg +0 -0
  55. {pypdfeditor_gui-3.1.1 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/icons/rotate_anticlockwise.svg +0 -0
  56. {pypdfeditor_gui-3.1.1 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/icons/rotate_clockwise.svg +0 -0
  57. {pypdfeditor_gui-3.1.1 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/icons/settings.svg +0 -0
  58. {pypdfeditor_gui-3.1.1 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/icons/settings_h.svg +0 -0
  59. {pypdfeditor_gui-3.1.1 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/icons/settings_p.svg +0 -0
  60. {pypdfeditor_gui-3.1.1 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/icons/square_multiple.svg +0 -0
  61. {pypdfeditor_gui-3.1.1 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/icons/sync.svg +0 -0
  62. {pypdfeditor_gui-3.1.1 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/icons/sync_h.svg +0 -0
  63. {pypdfeditor_gui-3.1.1 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/icons/sync_p.svg +0 -0
  64. {pypdfeditor_gui-3.1.1 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/icons/view.svg +0 -0
  65. {pypdfeditor_gui-3.1.1 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/icons/view_h.svg +0 -0
  66. {pypdfeditor_gui-3.1.1 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/icons/view_p.svg +0 -0
  67. {pypdfeditor_gui-3.1.1 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/language.py +0 -0
  68. {pypdfeditor_gui-3.1.1 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/style_sheets.py +0 -0
  69. {pypdfeditor_gui-3.1.1 → pypdfeditor_gui-3.1.2}/pypdfeditor_core/window_effect.py +0 -0
  70. {pypdfeditor_gui-3.1.1 → pypdfeditor_gui-3.1.2}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyPDFeditor-GUI
3
- Version: 3.1.1
3
+ Version: 3.1.2
4
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
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyPDFeditor-GUI
3
- Version: 3.1.1
3
+ Version: 3.1.2
4
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
@@ -15,7 +15,7 @@ if not os.path.exists(app_home):
15
15
 
16
16
  __system__ = platform.system()
17
17
  __author__ = "Nianze A. TAO (Omozawa SUENO)"
18
- __version__ = "3.1.1"
18
+ __version__ = "3.1.2"
19
19
  __all__ = ["main", "reset", "remove"]
20
20
 
21
21
 
@@ -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 < 5
529
- rx = x_pos > self.width() - 5
530
- ty = y_pos < 5
531
- by = y_pos > self.height() - 5
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:
@@ -38,7 +38,10 @@ setup(
38
38
  author="Nianze A. TAO",
39
39
  author_email="Augus_1999@outlook.com",
40
40
  packages=["pypdfeditor_core", "pypdfeditor_core.icons"],
41
- package_dir={"pypdfeditor_core": "pypdfeditor_core", "pypdfeditor_core.icons": "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"],
File without changes