PySide2-Frameless-Window 0.7.0__tar.gz → 0.7.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.
- {pyside2_frameless_window-0.7.0 → pyside2_frameless_window-0.7.2}/PKG-INFO +1 -1
- {pyside2_frameless_window-0.7.0 → pyside2_frameless_window-0.7.2}/PySide2_Frameless_Window.egg-info/PKG-INFO +1 -1
- {pyside2_frameless_window-0.7.0 → pyside2_frameless_window-0.7.2}/qframelesswindow/__init__.py +1 -1
- {pyside2_frameless_window-0.7.0 → pyside2_frameless_window-0.7.2}/qframelesswindow/windows/__init__.py +9 -9
- {pyside2_frameless_window-0.7.0 → pyside2_frameless_window-0.7.2}/setup.py +1 -1
- {pyside2_frameless_window-0.7.0 → pyside2_frameless_window-0.7.2}/LICENSE +0 -0
- {pyside2_frameless_window-0.7.0 → pyside2_frameless_window-0.7.2}/PySide2_Frameless_Window.egg-info/SOURCES.txt +0 -0
- {pyside2_frameless_window-0.7.0 → pyside2_frameless_window-0.7.2}/PySide2_Frameless_Window.egg-info/dependency_links.txt +0 -0
- {pyside2_frameless_window-0.7.0 → pyside2_frameless_window-0.7.2}/PySide2_Frameless_Window.egg-info/requires.txt +0 -0
- {pyside2_frameless_window-0.7.0 → pyside2_frameless_window-0.7.2}/PySide2_Frameless_Window.egg-info/top_level.txt +0 -0
- {pyside2_frameless_window-0.7.0 → pyside2_frameless_window-0.7.2}/README.md +0 -0
- {pyside2_frameless_window-0.7.0 → pyside2_frameless_window-0.7.2}/qframelesswindow/_rc/__init__.py +0 -0
- {pyside2_frameless_window-0.7.0 → pyside2_frameless_window-0.7.2}/qframelesswindow/_rc/resource.py +0 -0
- {pyside2_frameless_window-0.7.0 → pyside2_frameless_window-0.7.2}/qframelesswindow/linux/__init__.py +0 -0
- {pyside2_frameless_window-0.7.0 → pyside2_frameless_window-0.7.2}/qframelesswindow/linux/window_effect.py +0 -0
- {pyside2_frameless_window-0.7.0 → pyside2_frameless_window-0.7.2}/qframelesswindow/mac/__init__.py +0 -0
- {pyside2_frameless_window-0.7.0 → pyside2_frameless_window-0.7.2}/qframelesswindow/mac/window_effect.py +0 -0
- {pyside2_frameless_window-0.7.0 → pyside2_frameless_window-0.7.2}/qframelesswindow/titlebar/__init__.py +0 -0
- {pyside2_frameless_window-0.7.0 → pyside2_frameless_window-0.7.2}/qframelesswindow/titlebar/title_bar_buttons.py +0 -0
- {pyside2_frameless_window-0.7.0 → pyside2_frameless_window-0.7.2}/qframelesswindow/utils/__init__.py +0 -0
- {pyside2_frameless_window-0.7.0 → pyside2_frameless_window-0.7.2}/qframelesswindow/utils/linux_utils.py +0 -0
- {pyside2_frameless_window-0.7.0 → pyside2_frameless_window-0.7.2}/qframelesswindow/utils/mac_utils.py +0 -0
- {pyside2_frameless_window-0.7.0 → pyside2_frameless_window-0.7.2}/qframelesswindow/utils/win32_utils.py +0 -0
- {pyside2_frameless_window-0.7.0 → pyside2_frameless_window-0.7.2}/qframelesswindow/webengine/__init__.py +0 -0
- {pyside2_frameless_window-0.7.0 → pyside2_frameless_window-0.7.2}/qframelesswindow/windows/c_structures.py +0 -0
- {pyside2_frameless_window-0.7.0 → pyside2_frameless_window-0.7.2}/qframelesswindow/windows/window_effect.py +0 -0
- {pyside2_frameless_window-0.7.0 → pyside2_frameless_window-0.7.2}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: PySide2-Frameless-Window
|
|
3
|
-
Version: 0.7.
|
|
3
|
+
Version: 0.7.2
|
|
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
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: PySide2-Frameless-Window
|
|
3
|
-
Version: 0.7.
|
|
3
|
+
Version: 0.7.2
|
|
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
|
|
@@ -121,18 +121,18 @@ class WindowsFramelessWindow(QWidget):
|
|
|
121
121
|
return super().nativeEvent(eventType, message)
|
|
122
122
|
|
|
123
123
|
if msg.message == win32con.WM_NCHITTEST and self._isResizeEnabled:
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
w =
|
|
128
|
-
h =
|
|
124
|
+
xPos, yPos = win32gui.ScreenToClient(msg.hWnd, (msg.lParam & 65535, msg.lParam >> 16))
|
|
125
|
+
clientRect = win32gui.GetClientRect(msg.hWnd)
|
|
126
|
+
|
|
127
|
+
w = clientRect[2] - clientRect[0]
|
|
128
|
+
h = clientRect[3] - clientRect[1]
|
|
129
129
|
|
|
130
130
|
# fixes https://github.com/zhiyiYo/PyQt-Frameless-Window/issues/98
|
|
131
131
|
bw = 0 if win_utils.isMaximized(msg.hWnd) or win_utils.isFullScreen(msg.hWnd) else self.BORDER_WIDTH
|
|
132
|
-
lx = xPos < bw
|
|
133
|
-
rx = xPos > w - bw
|
|
134
|
-
ty = yPos < bw
|
|
135
|
-
by = yPos > h - bw
|
|
132
|
+
lx = xPos < bw # left
|
|
133
|
+
rx = xPos > w - bw # right
|
|
134
|
+
ty = yPos < bw # top
|
|
135
|
+
by = yPos > h - bw # bottom
|
|
136
136
|
if lx and ty:
|
|
137
137
|
return True, win32con.HTTOPLEFT
|
|
138
138
|
elif rx and by:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pyside2_frameless_window-0.7.0 → pyside2_frameless_window-0.7.2}/qframelesswindow/_rc/__init__.py
RENAMED
|
File without changes
|
{pyside2_frameless_window-0.7.0 → pyside2_frameless_window-0.7.2}/qframelesswindow/_rc/resource.py
RENAMED
|
File without changes
|
{pyside2_frameless_window-0.7.0 → pyside2_frameless_window-0.7.2}/qframelesswindow/linux/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{pyside2_frameless_window-0.7.0 → pyside2_frameless_window-0.7.2}/qframelesswindow/mac/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pyside2_frameless_window-0.7.0 → pyside2_frameless_window-0.7.2}/qframelesswindow/utils/__init__.py
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
|