Mercurial > touhou
comparison pytouhou/lib/sdl.pyx @ 531:a7dc55ad9380
Display important messages in popups, instead of the terminal.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Thu, 19 Dec 2013 00:44:18 +0100 |
parents | 7c3c90468996 |
children | 1abb6f7db8cc |
comparison
equal
deleted
inserted
replaced
530:64d9117b9209 | 531:a7dc55ad9380 |
---|---|
349 return SDL_GetTicks() | 349 return SDL_GetTicks() |
350 | 350 |
351 | 351 |
352 cdef void delay(Uint32 ms) nogil: | 352 cdef void delay(Uint32 ms) nogil: |
353 SDL_Delay(ms) | 353 SDL_Delay(ms) |
354 | |
355 | |
356 cpdef int show_simple_message_box(unicode message): | |
357 text = message.encode('UTF-8') | |
358 return SDL_ShowSimpleMessageBox(1, 'PyTouhou', text, NULL) |