blob: 71eae8f1b548b42ca8acac8e38456e94c6de9954 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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'}
|