nzbToMedia/libs/win/jaraco/windows/ui.py
2022-11-29 00:44:47 -05:00

10 lines
269 B
Python

#!/usr/bin/env python
import ctypes
from jaraco.windows.util import ensure_unicode
def MessageBox(text, caption=None, handle=None, type=None):
text, caption = map(ensure_unicode, (text, caption))
ctypes.windll.user32.MessageBoxW(handle, text, caption, type)