PySide2-Frameless-Window 0.0.2__tar.gz → 0.0.3__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 (26) hide show
  1. {PySide2-Frameless-Window-0.0.2 → PySide2-Frameless-Window-0.0.3}/PKG-INFO +15 -11
  2. {PySide2-Frameless-Window-0.0.2 → PySide2-Frameless-Window-0.0.3}/PySide2_Frameless_Window.egg-info/PKG-INFO +15 -11
  3. {PySide2-Frameless-Window-0.0.2 → PySide2-Frameless-Window-0.0.3}/README.md +14 -10
  4. {PySide2-Frameless-Window-0.0.2 → PySide2-Frameless-Window-0.0.3}/qframelesswindow/__init__.py +2 -2
  5. {PySide2-Frameless-Window-0.0.2 → PySide2-Frameless-Window-0.0.3}/qframelesswindow/mac/__init__.py +1 -1
  6. {PySide2-Frameless-Window-0.0.2 → PySide2-Frameless-Window-0.0.3}/setup.py +1 -1
  7. {PySide2-Frameless-Window-0.0.2 → PySide2-Frameless-Window-0.0.3}/LICENSE +0 -0
  8. {PySide2-Frameless-Window-0.0.2 → PySide2-Frameless-Window-0.0.3}/PySide2_Frameless_Window.egg-info/SOURCES.txt +0 -0
  9. {PySide2-Frameless-Window-0.0.2 → PySide2-Frameless-Window-0.0.3}/PySide2_Frameless_Window.egg-info/dependency_links.txt +0 -0
  10. {PySide2-Frameless-Window-0.0.2 → PySide2-Frameless-Window-0.0.3}/PySide2_Frameless_Window.egg-info/requires.txt +0 -0
  11. {PySide2-Frameless-Window-0.0.2 → PySide2-Frameless-Window-0.0.3}/PySide2_Frameless_Window.egg-info/top_level.txt +0 -0
  12. {PySide2-Frameless-Window-0.0.2 → PySide2-Frameless-Window-0.0.3}/qframelesswindow/_rc/__init__.py +0 -0
  13. {PySide2-Frameless-Window-0.0.2 → PySide2-Frameless-Window-0.0.3}/qframelesswindow/_rc/resource.py +0 -0
  14. {PySide2-Frameless-Window-0.0.2 → PySide2-Frameless-Window-0.0.3}/qframelesswindow/linux/__init__.py +0 -0
  15. {PySide2-Frameless-Window-0.0.2 → PySide2-Frameless-Window-0.0.3}/qframelesswindow/linux/window_effect.py +0 -0
  16. {PySide2-Frameless-Window-0.0.2 → PySide2-Frameless-Window-0.0.3}/qframelesswindow/mac/window_effect.py +0 -0
  17. {PySide2-Frameless-Window-0.0.2 → PySide2-Frameless-Window-0.0.3}/qframelesswindow/titlebar/__init__.py +0 -0
  18. {PySide2-Frameless-Window-0.0.2 → PySide2-Frameless-Window-0.0.3}/qframelesswindow/titlebar/title_bar_buttons.py +0 -0
  19. {PySide2-Frameless-Window-0.0.2 → PySide2-Frameless-Window-0.0.3}/qframelesswindow/utils/__init__.py +0 -0
  20. {PySide2-Frameless-Window-0.0.2 → PySide2-Frameless-Window-0.0.3}/qframelesswindow/utils/linux_utils.py +0 -0
  21. {PySide2-Frameless-Window-0.0.2 → PySide2-Frameless-Window-0.0.3}/qframelesswindow/utils/mac_utils.py +0 -0
  22. {PySide2-Frameless-Window-0.0.2 → PySide2-Frameless-Window-0.0.3}/qframelesswindow/utils/win32_utils.py +0 -0
  23. {PySide2-Frameless-Window-0.0.2 → PySide2-Frameless-Window-0.0.3}/qframelesswindow/windows/__init__.py +0 -0
  24. {PySide2-Frameless-Window-0.0.2 → PySide2-Frameless-Window-0.0.3}/qframelesswindow/windows/c_structures.py +0 -0
  25. {PySide2-Frameless-Window-0.0.2 → PySide2-Frameless-Window-0.0.3}/qframelesswindow/windows/window_effect.py +0 -0
  26. {PySide2-Frameless-Window-0.0.2 → PySide2-Frameless-Window-0.0.3}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: PySide2-Frameless-Window
3
- Version: 0.0.2
3
+ Version: 0.0.3
4
4
  Summary: A cross-platform frameless window based on pyside2, support Win32, Linux and macOS.
5
5
  Home-page: https://github.com/zhiyiYo/PyQt-Frameless-Window/tree/Pyside2
6
6
  Author: zhiyiYo
@@ -14,10 +14,10 @@ Description-Content-Type: text/markdown
14
14
  License-File: LICENSE
15
15
 
16
16
  <p align="center">
17
- <img width="15%" align="center" src="https://raw.githubusercontent.com/zhiyiYo/PyQt-Frameless-Window/Pyside2/screenshot/logo.png" alt="logo">
17
+ <img width="15%" align="center" src="https://raw.githubusercontent.com/zhiyiYo/PyQt-Frameless-Window/PyQt6/screenshot/logo.png" alt="logo">
18
18
  </p>
19
19
  <h1 align="center">
20
- PyQt-Frameless-Window
20
+ PySide2-Frameless-Window
21
21
  </h1>
22
22
  <p align="center">
23
23
  A cross-platform frameless window based on PySide2
@@ -37,14 +37,15 @@ License-File: LICENSE
37
37
  </a>
38
38
  </p>
39
39
 
40
- ![Cover](https://raw.githubusercontent.com/zhiyiYo/PyQt-Frameless-Window/Pyside2/screenshot/cover.jpg)
40
+ ![Cover](https://raw.githubusercontent.com/zhiyiYo/PyQt-Frameless-Window/PyQt6/screenshot/cover.jpg)
41
41
 
42
42
 
43
43
  ## Features
44
44
  * Move
45
45
  * Stretching
46
- * Window animation
47
46
  * Window shadow
47
+ * Window animation
48
+ * Win11 snap layout
48
49
  * Win10 acrylic blur
49
50
  * Win11 mica blur
50
51
  * Win7 Aero blur
@@ -96,33 +97,36 @@ For more complex requirements, see [demo.py](https://github.com/zhiyiYo/PyQt-Fra
96
97
 
97
98
  ## Examples
98
99
  * Normal frameless window
99
- ![Normal Frameless Window](https://raw.githubusercontent.com/zhiyiYo/PyQt-Frameless-Window/Pyside2/screenshot/normal_frameless_window.gif)
100
+ ![Normal Frameless Window](https://raw.githubusercontent.com/zhiyiYo/PyQt-Frameless-Window/PyQt6/screenshot/normal_frameless_window.gif)
100
101
  * Acrylic frameless window
101
- ![Acrylic Frameless Window](https://raw.githubusercontent.com/zhiyiYo/PyQt-Frameless-Window/Pyside2/screenshot/acrylic_window.jpg)
102
+ ![Acrylic Frameless Window](https://raw.githubusercontent.com/zhiyiYo/PyQt-Frameless-Window/PyQt6/screenshot/acrylic_window.jpg)
102
103
 
103
104
 
105
+ ## Document
106
+ Want to know more about PySide2-Frameless-Window? Please read the [help document](https://pyqt-frameless-window.readthedocs.io/) 👈
104
107
 
105
108
  ## Notes
106
109
  1. `FramelessWindow` provides a default custom title bar. If you don't like it, just rewrite it as [demo.py](https://github.com/zhiyiYo/PyQt-Frameless-Window/blob/Pyside2/examples/demo.py) does.
107
110
 
108
111
  2. Moving the acrylic window on Win10 may get stuck. At present, there is no good solution. Maybe you can disable the acrylic effect when moving the window, but I haven't done this in the source code.
112
+ 3. Snap layout is not enabled by default. See [#56](https://github.com/zhiyiYo/PyQt-Frameless-Window/issues/56) to learn how to enable it.
109
113
 
110
- 3. If you encounter this problem on Windows:
114
+ 4. If you encounter this problem on Windows:
111
115
  > ImportError: DLL load failed while importing win32api
112
116
 
113
117
  see my answer on [stackoverflow](https://stackoverflow.com/questions/58612306/how-to-fix-importerror-dll-load-failed-while-importing-win32api/72488468#72488468) or my [blog](https://www.cnblogs.com/zhiyiYo/p/16340429.html) for the solution.
114
118
 
115
- 4. If you are using PyQt5, PyQt6 or PySide6, you can download the code in [PyQt5](https://github.com/zhiyiYo/PyQt-Frameless-Window) or [PyQt6](https://github.com/zhiyiYo/PyQt-Frameless-Window/tree/PyQt6) or [PySide6](https://github.com/zhiyiYo/PyQt-Frameless-Window/tree/PySide6) branch.
119
+ 5. If you are using PyQt5, PyQt6 or PySide6, you can download the code in [PyQt5](https://github.com/zhiyiYo/PyQt-Frameless-Window) or [PyQt6](https://github.com/zhiyiYo/PyQt-Frameless-Window/tree/PyQt6) or [PySide6](https://github.com/zhiyiYo/PyQt-Frameless-Window/tree/PySide6) branch.
116
120
 
117
121
  ## See Also
118
122
  Here are some projects that use PyQt-Frameless-Window:
119
123
  * [**zhiyiYo/Groove**: A cross-platform music player based on PyQt5](https://github.com/zhiyiYo/Groove)
120
124
  * [**zhiyiYo/Alpha-Gobang-Zero**: A gobang robot based on reinforcement learning](https://github.com/zhiyiYo/Alpha-Gobang-Zero)
121
- * [**tonquer/picacg-qt**: PicACG PC Client ](https://github.com/tonquer/picacg-qt)
125
+ * [**zhiyiYo/PyQt-Fluent-Widgets**: A fluent design widgets library based on PyQt5](https://github.com/zhiyiYo/PyQt-Fluent-Widgets)
122
126
 
123
127
  ## Reference
124
128
  * [**wangwenx190/framelesshelper**: Frameless windows for Qt Widgets and Qt Quick applications. Support Win32, X11, Wayland and macOS](https://github.com/wangwenx190/framelesshelper)
125
- * [**libxcb**: Basic Graphics Programming With The XCB Library](https://github.com/zhaiyuhan/HAODA)
129
+ * [**libxcb**: Basic Graphics Programming With The XCB Library](https://www.x.org/releases/X11R7.5/doc/libxcb/tutorial)
126
130
 
127
131
  ## License
128
132
  ```
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: PySide2-Frameless-Window
3
- Version: 0.0.2
3
+ Version: 0.0.3
4
4
  Summary: A cross-platform frameless window based on pyside2, support Win32, Linux and macOS.
5
5
  Home-page: https://github.com/zhiyiYo/PyQt-Frameless-Window/tree/Pyside2
6
6
  Author: zhiyiYo
@@ -14,10 +14,10 @@ Description-Content-Type: text/markdown
14
14
  License-File: LICENSE
15
15
 
16
16
  <p align="center">
17
- <img width="15%" align="center" src="https://raw.githubusercontent.com/zhiyiYo/PyQt-Frameless-Window/Pyside2/screenshot/logo.png" alt="logo">
17
+ <img width="15%" align="center" src="https://raw.githubusercontent.com/zhiyiYo/PyQt-Frameless-Window/PyQt6/screenshot/logo.png" alt="logo">
18
18
  </p>
19
19
  <h1 align="center">
20
- PyQt-Frameless-Window
20
+ PySide2-Frameless-Window
21
21
  </h1>
22
22
  <p align="center">
23
23
  A cross-platform frameless window based on PySide2
@@ -37,14 +37,15 @@ License-File: LICENSE
37
37
  </a>
38
38
  </p>
39
39
 
40
- ![Cover](https://raw.githubusercontent.com/zhiyiYo/PyQt-Frameless-Window/Pyside2/screenshot/cover.jpg)
40
+ ![Cover](https://raw.githubusercontent.com/zhiyiYo/PyQt-Frameless-Window/PyQt6/screenshot/cover.jpg)
41
41
 
42
42
 
43
43
  ## Features
44
44
  * Move
45
45
  * Stretching
46
- * Window animation
47
46
  * Window shadow
47
+ * Window animation
48
+ * Win11 snap layout
48
49
  * Win10 acrylic blur
49
50
  * Win11 mica blur
50
51
  * Win7 Aero blur
@@ -96,33 +97,36 @@ For more complex requirements, see [demo.py](https://github.com/zhiyiYo/PyQt-Fra
96
97
 
97
98
  ## Examples
98
99
  * Normal frameless window
99
- ![Normal Frameless Window](https://raw.githubusercontent.com/zhiyiYo/PyQt-Frameless-Window/Pyside2/screenshot/normal_frameless_window.gif)
100
+ ![Normal Frameless Window](https://raw.githubusercontent.com/zhiyiYo/PyQt-Frameless-Window/PyQt6/screenshot/normal_frameless_window.gif)
100
101
  * Acrylic frameless window
101
- ![Acrylic Frameless Window](https://raw.githubusercontent.com/zhiyiYo/PyQt-Frameless-Window/Pyside2/screenshot/acrylic_window.jpg)
102
+ ![Acrylic Frameless Window](https://raw.githubusercontent.com/zhiyiYo/PyQt-Frameless-Window/PyQt6/screenshot/acrylic_window.jpg)
102
103
 
103
104
 
105
+ ## Document
106
+ Want to know more about PySide2-Frameless-Window? Please read the [help document](https://pyqt-frameless-window.readthedocs.io/) 👈
104
107
 
105
108
  ## Notes
106
109
  1. `FramelessWindow` provides a default custom title bar. If you don't like it, just rewrite it as [demo.py](https://github.com/zhiyiYo/PyQt-Frameless-Window/blob/Pyside2/examples/demo.py) does.
107
110
 
108
111
  2. Moving the acrylic window on Win10 may get stuck. At present, there is no good solution. Maybe you can disable the acrylic effect when moving the window, but I haven't done this in the source code.
112
+ 3. Snap layout is not enabled by default. See [#56](https://github.com/zhiyiYo/PyQt-Frameless-Window/issues/56) to learn how to enable it.
109
113
 
110
- 3. If you encounter this problem on Windows:
114
+ 4. If you encounter this problem on Windows:
111
115
  > ImportError: DLL load failed while importing win32api
112
116
 
113
117
  see my answer on [stackoverflow](https://stackoverflow.com/questions/58612306/how-to-fix-importerror-dll-load-failed-while-importing-win32api/72488468#72488468) or my [blog](https://www.cnblogs.com/zhiyiYo/p/16340429.html) for the solution.
114
118
 
115
- 4. If you are using PyQt5, PyQt6 or PySide6, you can download the code in [PyQt5](https://github.com/zhiyiYo/PyQt-Frameless-Window) or [PyQt6](https://github.com/zhiyiYo/PyQt-Frameless-Window/tree/PyQt6) or [PySide6](https://github.com/zhiyiYo/PyQt-Frameless-Window/tree/PySide6) branch.
119
+ 5. If you are using PyQt5, PyQt6 or PySide6, you can download the code in [PyQt5](https://github.com/zhiyiYo/PyQt-Frameless-Window) or [PyQt6](https://github.com/zhiyiYo/PyQt-Frameless-Window/tree/PyQt6) or [PySide6](https://github.com/zhiyiYo/PyQt-Frameless-Window/tree/PySide6) branch.
116
120
 
117
121
  ## See Also
118
122
  Here are some projects that use PyQt-Frameless-Window:
119
123
  * [**zhiyiYo/Groove**: A cross-platform music player based on PyQt5](https://github.com/zhiyiYo/Groove)
120
124
  * [**zhiyiYo/Alpha-Gobang-Zero**: A gobang robot based on reinforcement learning](https://github.com/zhiyiYo/Alpha-Gobang-Zero)
121
- * [**tonquer/picacg-qt**: PicACG PC Client ](https://github.com/tonquer/picacg-qt)
125
+ * [**zhiyiYo/PyQt-Fluent-Widgets**: A fluent design widgets library based on PyQt5](https://github.com/zhiyiYo/PyQt-Fluent-Widgets)
122
126
 
123
127
  ## Reference
124
128
  * [**wangwenx190/framelesshelper**: Frameless windows for Qt Widgets and Qt Quick applications. Support Win32, X11, Wayland and macOS](https://github.com/wangwenx190/framelesshelper)
125
- * [**libxcb**: Basic Graphics Programming With The XCB Library](https://github.com/zhaiyuhan/HAODA)
129
+ * [**libxcb**: Basic Graphics Programming With The XCB Library](https://www.x.org/releases/X11R7.5/doc/libxcb/tutorial)
126
130
 
127
131
  ## License
128
132
  ```
@@ -1,8 +1,8 @@
1
1
  <p align="center">
2
- <img width="15%" align="center" src="https://raw.githubusercontent.com/zhiyiYo/PyQt-Frameless-Window/Pyside2/screenshot/logo.png" alt="logo">
2
+ <img width="15%" align="center" src="https://raw.githubusercontent.com/zhiyiYo/PyQt-Frameless-Window/PyQt6/screenshot/logo.png" alt="logo">
3
3
  </p>
4
4
  <h1 align="center">
5
- PyQt-Frameless-Window
5
+ PySide2-Frameless-Window
6
6
  </h1>
7
7
  <p align="center">
8
8
  A cross-platform frameless window based on PySide2
@@ -22,14 +22,15 @@
22
22
  </a>
23
23
  </p>
24
24
 
25
- ![Cover](https://raw.githubusercontent.com/zhiyiYo/PyQt-Frameless-Window/Pyside2/screenshot/cover.jpg)
25
+ ![Cover](https://raw.githubusercontent.com/zhiyiYo/PyQt-Frameless-Window/PyQt6/screenshot/cover.jpg)
26
26
 
27
27
 
28
28
  ## Features
29
29
  * Move
30
30
  * Stretching
31
- * Window animation
32
31
  * Window shadow
32
+ * Window animation
33
+ * Win11 snap layout
33
34
  * Win10 acrylic blur
34
35
  * Win11 mica blur
35
36
  * Win7 Aero blur
@@ -81,33 +82,36 @@ For more complex requirements, see [demo.py](https://github.com/zhiyiYo/PyQt-Fra
81
82
 
82
83
  ## Examples
83
84
  * Normal frameless window
84
- ![Normal Frameless Window](https://raw.githubusercontent.com/zhiyiYo/PyQt-Frameless-Window/Pyside2/screenshot/normal_frameless_window.gif)
85
+ ![Normal Frameless Window](https://raw.githubusercontent.com/zhiyiYo/PyQt-Frameless-Window/PyQt6/screenshot/normal_frameless_window.gif)
85
86
  * Acrylic frameless window
86
- ![Acrylic Frameless Window](https://raw.githubusercontent.com/zhiyiYo/PyQt-Frameless-Window/Pyside2/screenshot/acrylic_window.jpg)
87
+ ![Acrylic Frameless Window](https://raw.githubusercontent.com/zhiyiYo/PyQt-Frameless-Window/PyQt6/screenshot/acrylic_window.jpg)
87
88
 
88
89
 
90
+ ## Document
91
+ Want to know more about PySide2-Frameless-Window? Please read the [help document](https://pyqt-frameless-window.readthedocs.io/) 👈
89
92
 
90
93
  ## Notes
91
94
  1. `FramelessWindow` provides a default custom title bar. If you don't like it, just rewrite it as [demo.py](https://github.com/zhiyiYo/PyQt-Frameless-Window/blob/Pyside2/examples/demo.py) does.
92
95
 
93
96
  2. Moving the acrylic window on Win10 may get stuck. At present, there is no good solution. Maybe you can disable the acrylic effect when moving the window, but I haven't done this in the source code.
97
+ 3. Snap layout is not enabled by default. See [#56](https://github.com/zhiyiYo/PyQt-Frameless-Window/issues/56) to learn how to enable it.
94
98
 
95
- 3. If you encounter this problem on Windows:
99
+ 4. If you encounter this problem on Windows:
96
100
  > ImportError: DLL load failed while importing win32api
97
101
 
98
102
  see my answer on [stackoverflow](https://stackoverflow.com/questions/58612306/how-to-fix-importerror-dll-load-failed-while-importing-win32api/72488468#72488468) or my [blog](https://www.cnblogs.com/zhiyiYo/p/16340429.html) for the solution.
99
103
 
100
- 4. If you are using PyQt5, PyQt6 or PySide6, you can download the code in [PyQt5](https://github.com/zhiyiYo/PyQt-Frameless-Window) or [PyQt6](https://github.com/zhiyiYo/PyQt-Frameless-Window/tree/PyQt6) or [PySide6](https://github.com/zhiyiYo/PyQt-Frameless-Window/tree/PySide6) branch.
104
+ 5. If you are using PyQt5, PyQt6 or PySide6, you can download the code in [PyQt5](https://github.com/zhiyiYo/PyQt-Frameless-Window) or [PyQt6](https://github.com/zhiyiYo/PyQt-Frameless-Window/tree/PyQt6) or [PySide6](https://github.com/zhiyiYo/PyQt-Frameless-Window/tree/PySide6) branch.
101
105
 
102
106
  ## See Also
103
107
  Here are some projects that use PyQt-Frameless-Window:
104
108
  * [**zhiyiYo/Groove**: A cross-platform music player based on PyQt5](https://github.com/zhiyiYo/Groove)
105
109
  * [**zhiyiYo/Alpha-Gobang-Zero**: A gobang robot based on reinforcement learning](https://github.com/zhiyiYo/Alpha-Gobang-Zero)
106
- * [**tonquer/picacg-qt**: PicACG PC Client ](https://github.com/tonquer/picacg-qt)
110
+ * [**zhiyiYo/PyQt-Fluent-Widgets**: A fluent design widgets library based on PyQt5](https://github.com/zhiyiYo/PyQt-Fluent-Widgets)
107
111
 
108
112
  ## Reference
109
113
  * [**wangwenx190/framelesshelper**: Frameless windows for Qt Widgets and Qt Quick applications. Support Win32, X11, Wayland and macOS](https://github.com/wangwenx190/framelesshelper)
110
- * [**libxcb**: Basic Graphics Programming With The XCB Library](https://github.com/zhaiyuhan/HAODA)
114
+ * [**libxcb**: Basic Graphics Programming With The XCB Library](https://www.x.org/releases/X11R7.5/doc/libxcb/tutorial)
111
115
 
112
116
  ## License
113
117
  ```
@@ -4,7 +4,7 @@ PySide2-Frameless-Window
4
4
  A cross-platform frameless window based on pyside2, support Win32, Linux and macOS.
5
5
 
6
6
  Documentation is available in the docstrings and
7
- online at https://github.com/zhiyiYo/PyQt-Frameless-Window/tree/Pyside2.
7
+ online at https://pyqt-frameless-window.readthedocs.io.
8
8
 
9
9
  Examples are available at https://github.com/zhiyiYo/PyQt-Frameless-Window/tree/Pyside2/examples.
10
10
 
@@ -12,7 +12,7 @@ Examples are available at https://github.com/zhiyiYo/PyQt-Frameless-Window/tree/
12
12
  :license: MIT, see LICENSE for more details.
13
13
  """
14
14
 
15
- __version__ = "0.0.2"
15
+ __version__ = "0.0.3"
16
16
 
17
17
  import sys
18
18
 
@@ -55,7 +55,7 @@ class MacFramelessWindow(QWidget):
55
55
 
56
56
  def paintEvent(self, e):
57
57
  super().paintEvent(e)
58
- self.__nsWindow.setTitlebarAppearsTransparent_(True)
58
+ self.__hideSystemTitleBar()
59
59
 
60
60
  def changeEvent(self, event):
61
61
  super().changeEvent(event)
@@ -6,7 +6,7 @@ with open('README.md', encoding='utf-8') as f:
6
6
 
7
7
  setuptools.setup(
8
8
  name="PySide2-Frameless-Window",
9
- version="0.0.2",
9
+ version="0.0.3",
10
10
  keywords="pyside2 frameless",
11
11
  author="zhiyiYo",
12
12
  author_email="shokokawaii@outlook.com",