-
Notifications
You must be signed in to change notification settings - Fork 792
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
3 changed files
with
11 additions
and
8 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 |
---|---|---|
@@ -1,15 +1,12 @@ | ||
from __future__ import annotations | ||
|
||
import warnings | ||
|
||
from win32console import GetConsoleWindow as GetConsoleWindow | ||
from win32gui import * | ||
|
||
REGION_BOX = [0, (0, 0, 0, 0)] | ||
|
||
warnings.warn( | ||
"The `winxpgui` gui is deprecated and simply re-exports `win32gui.*`, `win32console.GetConsoleWindow`, " | ||
+ f"and `GetWindowRgnBox` is now hardcoded to return `{REGION_BOX}`.", | ||
"The `winxpgui` module is obsolete and has been completely replaced " | ||
"by `win32gui` and `win32console.GetConsoleWindow`. Use those instead.", | ||
category=DeprecationWarning, | ||
) | ||
def GetWindowRgnBox(__): | ||
print(f"`GetWindowRgnBox` is no longer supported and will always return `{REGION_BOX}`.") | ||
return REGION_BOX |