diff options
author | AL-LCL <alvin@alvinhavel.com> | 2023-05-19 11:01:49 +0200 |
---|---|---|
committer | AL-LCL <alvin@alvinhavel.com> | 2023-05-19 11:01:49 +0200 |
commit | 20dbeb2f38684c65ff0a4b99012c161295708e88 (patch) | |
tree | a5b8445f55da2fbbb92443b68e9d7354a290c598 /foreign/client_handling/messagebox.py |
Diffstat (limited to 'foreign/client_handling/messagebox.py')
-rw-r--r-- | foreign/client_handling/messagebox.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/foreign/client_handling/messagebox.py b/foreign/client_handling/messagebox.py new file mode 100644 index 0000000..71eae8f --- /dev/null +++ b/foreign/client_handling/messagebox.py @@ -0,0 +1,14 @@ +import threading +import ctypes + +from foreign.parse.crash_exception_handling import * + + +@crash_exception_handling +def messagebox_action(title, text, style): + ctypes.windll.user32.MessageBoxW(0, text, title, style) + + +def messagebox(title, text, style): + threading.Thread(target=messagebox_action, args=(title, text, style), daemon=True).start() + return {'message': f'Messagebox succesfully shown', 'text_mode': 'success'}
\ No newline at end of file |