-
-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
99 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# coding:utf-8 | ||
import sys | ||
|
||
if sys.platform == "win32": | ||
from .win32_utils import WindowsMoveResize as MoveResize | ||
elif sys.platform == "darwin": | ||
from .mac_utils import MacMoveResize as MoveResize | ||
else: | ||
from .linux_utils import LinuxMoveResize as MoveResize | ||
|
||
|
||
def startSystemMove(window, globalPos): | ||
""" resize window | ||
Parameters | ||
---------- | ||
window: QWidget | ||
window | ||
globalPos: QPoint | ||
the global point of mouse release event | ||
""" | ||
MoveResize.startSystemMove(window, globalPos) | ||
|
||
|
||
def starSystemResize(window, globalPos, edges): | ||
""" resize window | ||
Parameters | ||
---------- | ||
window: QWidget | ||
window | ||
globalPos: QPoint | ||
the global point of mouse release event | ||
edges: `Qt.Edges` | ||
window edges | ||
""" | ||
MoveResize.starSystemResize(window, globalPos, edges) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters