mirror of https://github.com/kivy/kivy.git
gl: use ctypes instead of win32ui for displaying a message box. closes #1723
This commit is contained in:
parent
5a5796eca0
commit
d80741b1a5
|
@ -16,8 +16,9 @@ MIN_REQUIRED_GL_VERSION = (2, 0)
|
|||
|
||||
def msgbox(message):
|
||||
if sysplatform == 'win32':
|
||||
import win32ui
|
||||
win32ui.MessageBox(message, 'Kivy Fatal Error')
|
||||
import ctypes
|
||||
ctypes.windll.user32.MessageBoxA(
|
||||
None, message, 'Kivy Fatal Error', 0)
|
||||
exit(1)
|
||||
|
||||
if 'KIVY_DOC' not in environ:
|
||||
|
|
Loading…
Reference in New Issue