-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding GUI notifications for important events.
- Loading branch information
1 parent
2b1cc19
commit fb2dabc
Showing
3 changed files
with
91 additions
and
6 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,24 @@ | ||
# pylint: disable=import-outside-toplevel | ||
import sys | ||
|
||
# TODO: Add support for Linux and Mac OS | ||
|
||
if sys.platform.lower() == "win32": | ||
import ctypes | ||
|
||
def show_error_msg(title, message): | ||
ctypes.windll.user32.MessageBoxW(0, message, f"VU Server - {title}", 16) | ||
|
||
def show_warning_msg(title, message): | ||
ctypes.windll.user32.MessageBoxW(0, message, f"VU Server - {title}", 48) | ||
|
||
def show_info_msg(title, message): | ||
ctypes.windll.user32.MessageBoxW(0, message, f"VU Server - {title}", 64) | ||
|
||
else: | ||
def show_error_msg(title, message): | ||
pass | ||
def show_warning_msg(title, message): | ||
pass | ||
def show_info_msg(title, message): | ||
pass |