gl: use ctypes instead of win32ui for displaying a message box. closes #1723

This commit is contained in:
Mathieu Virbel 2014-01-03 20:08:10 +01:00
parent 5a5796eca0
commit d80741b1a5
1 changed files with 3 additions and 2 deletions

View File

@ -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: