PyQt5-Frameless-Window 0.7.0__tar.gz → 0.7.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.
- {pyqt5_frameless_window-0.7.0 → pyqt5_frameless_window-0.7.3}/PKG-INFO +2 -1
- {pyqt5_frameless_window-0.7.0 → pyqt5_frameless_window-0.7.3}/PyQt5_Frameless_Window.egg-info/PKG-INFO +2 -1
- {pyqt5_frameless_window-0.7.0 → pyqt5_frameless_window-0.7.3}/README.md +1 -0
- {pyqt5_frameless_window-0.7.0 → pyqt5_frameless_window-0.7.3}/qframelesswindow/__init__.py +1 -1
- {pyqt5_frameless_window-0.7.0 → pyqt5_frameless_window-0.7.3}/qframelesswindow/windows/__init__.py +9 -9
- {pyqt5_frameless_window-0.7.0 → pyqt5_frameless_window-0.7.3}/setup.py +1 -1
- {pyqt5_frameless_window-0.7.0 → pyqt5_frameless_window-0.7.3}/LICENSE +0 -0
- {pyqt5_frameless_window-0.7.0 → pyqt5_frameless_window-0.7.3}/PyQt5_Frameless_Window.egg-info/SOURCES.txt +0 -0
- {pyqt5_frameless_window-0.7.0 → pyqt5_frameless_window-0.7.3}/PyQt5_Frameless_Window.egg-info/dependency_links.txt +0 -0
- {pyqt5_frameless_window-0.7.0 → pyqt5_frameless_window-0.7.3}/PyQt5_Frameless_Window.egg-info/requires.txt +0 -0
- {pyqt5_frameless_window-0.7.0 → pyqt5_frameless_window-0.7.3}/PyQt5_Frameless_Window.egg-info/top_level.txt +0 -0
- {pyqt5_frameless_window-0.7.0 → pyqt5_frameless_window-0.7.3}/qframelesswindow/_rc/__init__.py +0 -0
- {pyqt5_frameless_window-0.7.0 → pyqt5_frameless_window-0.7.3}/qframelesswindow/_rc/resource.py +0 -0
- {pyqt5_frameless_window-0.7.0 → pyqt5_frameless_window-0.7.3}/qframelesswindow/linux/__init__.py +0 -0
- {pyqt5_frameless_window-0.7.0 → pyqt5_frameless_window-0.7.3}/qframelesswindow/linux/window_effect.py +0 -0
- {pyqt5_frameless_window-0.7.0 → pyqt5_frameless_window-0.7.3}/qframelesswindow/mac/__init__.py +0 -0
- {pyqt5_frameless_window-0.7.0 → pyqt5_frameless_window-0.7.3}/qframelesswindow/mac/window_effect.py +0 -0
- {pyqt5_frameless_window-0.7.0 → pyqt5_frameless_window-0.7.3}/qframelesswindow/titlebar/__init__.py +0 -0
- {pyqt5_frameless_window-0.7.0 → pyqt5_frameless_window-0.7.3}/qframelesswindow/titlebar/title_bar_buttons.py +0 -0
- {pyqt5_frameless_window-0.7.0 → pyqt5_frameless_window-0.7.3}/qframelesswindow/utils/__init__.py +0 -0
- {pyqt5_frameless_window-0.7.0 → pyqt5_frameless_window-0.7.3}/qframelesswindow/utils/linux_utils.py +0 -0
- {pyqt5_frameless_window-0.7.0 → pyqt5_frameless_window-0.7.3}/qframelesswindow/utils/mac_utils.py +0 -0
- {pyqt5_frameless_window-0.7.0 → pyqt5_frameless_window-0.7.3}/qframelesswindow/utils/win32_utils.py +0 -0
- {pyqt5_frameless_window-0.7.0 → pyqt5_frameless_window-0.7.3}/qframelesswindow/webengine/__init__.py +0 -0
- {pyqt5_frameless_window-0.7.0 → pyqt5_frameless_window-0.7.3}/qframelesswindow/windows/c_structures.py +0 -0
- {pyqt5_frameless_window-0.7.0 → pyqt5_frameless_window-0.7.3}/qframelesswindow/windows/window_effect.py +0 -0
- {pyqt5_frameless_window-0.7.0 → pyqt5_frameless_window-0.7.3}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: PyQt5-Frameless-Window
|
|
3
|
-
Version: 0.7.
|
|
3
|
+
Version: 0.7.3
|
|
4
4
|
Summary: A cross-platform frameless window based on pyqt5, support Win32, X11, Wayland and macOS.
|
|
5
5
|
Home-page: https://github.com/zhiyiYo/PyQt-Frameless-Window
|
|
6
6
|
Author: zhiyiYo
|
|
@@ -56,6 +56,7 @@ Requires-Dist: PyCocoa; platform_system == "Darwin"
|
|
|
56
56
|
* MacOS blur
|
|
57
57
|
* Disable screen capture
|
|
58
58
|
|
|
59
|
+
|
|
59
60
|
## Install
|
|
60
61
|
To install use pip:
|
|
61
62
|
```shell
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: PyQt5-Frameless-Window
|
|
3
|
-
Version: 0.7.
|
|
3
|
+
Version: 0.7.3
|
|
4
4
|
Summary: A cross-platform frameless window based on pyqt5, support Win32, X11, Wayland and macOS.
|
|
5
5
|
Home-page: https://github.com/zhiyiYo/PyQt-Frameless-Window
|
|
6
6
|
Author: zhiyiYo
|
|
@@ -56,6 +56,7 @@ Requires-Dist: PyCocoa; platform_system == "Darwin"
|
|
|
56
56
|
* MacOS blur
|
|
57
57
|
* Disable screen capture
|
|
58
58
|
|
|
59
|
+
|
|
59
60
|
## Install
|
|
60
61
|
To install use pip:
|
|
61
62
|
```shell
|
{pyqt5_frameless_window-0.7.0 → pyqt5_frameless_window-0.7.3}/qframelesswindow/windows/__init__.py
RENAMED
|
@@ -117,18 +117,18 @@ class WindowsFramelessWindow(QWidget):
|
|
|
117
117
|
return super().nativeEvent(eventType, message)
|
|
118
118
|
|
|
119
119
|
if msg.message == win32con.WM_NCHITTEST and self._isResizeEnabled:
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
w =
|
|
124
|
-
h =
|
|
120
|
+
xPos, yPos = win32gui.ScreenToClient(msg.hWnd, win32api.GetCursorPos())
|
|
121
|
+
clientRect = win32gui.GetClientRect(msg.hWnd)
|
|
122
|
+
|
|
123
|
+
w = clientRect[2] - clientRect[0]
|
|
124
|
+
h = clientRect[3] - clientRect[1]
|
|
125
125
|
|
|
126
126
|
# fixes issue https://github.com/zhiyiYo/PyQt-Frameless-Window/issues/98
|
|
127
127
|
bw = 0 if win_utils.isMaximized(msg.hWnd) or win_utils.isFullScreen(msg.hWnd) else self.BORDER_WIDTH
|
|
128
|
-
lx = xPos < bw
|
|
129
|
-
rx = xPos > w - bw
|
|
130
|
-
ty = yPos < bw
|
|
131
|
-
by = yPos > h - bw
|
|
128
|
+
lx = xPos < bw # left
|
|
129
|
+
rx = xPos > w - bw # right
|
|
130
|
+
ty = yPos < bw # top
|
|
131
|
+
by = yPos > h - bw # bottom
|
|
132
132
|
if lx and ty:
|
|
133
133
|
return True, win32con.HTTOPLEFT
|
|
134
134
|
elif rx and by:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pyqt5_frameless_window-0.7.0 → pyqt5_frameless_window-0.7.3}/qframelesswindow/_rc/__init__.py
RENAMED
|
File without changes
|
{pyqt5_frameless_window-0.7.0 → pyqt5_frameless_window-0.7.3}/qframelesswindow/_rc/resource.py
RENAMED
|
File without changes
|
{pyqt5_frameless_window-0.7.0 → pyqt5_frameless_window-0.7.3}/qframelesswindow/linux/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{pyqt5_frameless_window-0.7.0 → pyqt5_frameless_window-0.7.3}/qframelesswindow/mac/__init__.py
RENAMED
|
File without changes
|
{pyqt5_frameless_window-0.7.0 → pyqt5_frameless_window-0.7.3}/qframelesswindow/mac/window_effect.py
RENAMED
|
File without changes
|
{pyqt5_frameless_window-0.7.0 → pyqt5_frameless_window-0.7.3}/qframelesswindow/titlebar/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{pyqt5_frameless_window-0.7.0 → pyqt5_frameless_window-0.7.3}/qframelesswindow/utils/__init__.py
RENAMED
|
File without changes
|
{pyqt5_frameless_window-0.7.0 → pyqt5_frameless_window-0.7.3}/qframelesswindow/utils/linux_utils.py
RENAMED
|
File without changes
|
{pyqt5_frameless_window-0.7.0 → pyqt5_frameless_window-0.7.3}/qframelesswindow/utils/mac_utils.py
RENAMED
|
File without changes
|
{pyqt5_frameless_window-0.7.0 → pyqt5_frameless_window-0.7.3}/qframelesswindow/utils/win32_utils.py
RENAMED
|
File without changes
|
{pyqt5_frameless_window-0.7.0 → pyqt5_frameless_window-0.7.3}/qframelesswindow/webengine/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|