changeset 578:00f228b57840

Make Runner.update callable from Python code.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Mon, 04 Aug 2014 18:18:55 +0200
parents e35a083d4208
children b8df946d394d
files pytouhou/ui/gamerunner.pyx pytouhou/ui/window.pxd pytouhou/ui/window.pyx
diffstat 3 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/pytouhou/ui/gamerunner.pyx	Wed Aug 06 10:50:19 2014 +0200
+++ b/pytouhou/ui/gamerunner.pyx	Mon Aug 04 18:18:55 2014 +0200
@@ -108,7 +108,7 @@
             self.renderer.start(self.common)
 
 
-    cdef bint update(self) except *:
+    cpdef bint update(self) except? False:
         cdef long keystate
 
         if self.background is not None:
--- a/pytouhou/ui/window.pxd	Wed Aug 06 10:50:19 2014 +0200
+++ b/pytouhou/ui/window.pxd	Mon Aug 04 18:18:55 2014 +0200
@@ -15,7 +15,7 @@
 
     cdef void start(self) except *
     cdef void finish(self) except *
-    cdef bint update(self) except *
+    cpdef bint update(self) except? False
 
 
 cdef class Window:
--- a/pytouhou/ui/window.pyx	Wed Aug 06 10:50:19 2014 +0200
+++ b/pytouhou/ui/window.pyx	Mon Aug 04 18:18:55 2014 +0200
@@ -71,7 +71,7 @@
     cdef void finish(self) except *:
         pass
 
-    cdef bint update(self) except *:
+    cpdef bint update(self) except? False:
         return False