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
+++ b/pytouhou/ui/gamerunner.pyx
@@ -108,7 +108,7 @@ cdef class GameRunner(Runner):
             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
+++ b/pytouhou/ui/window.pxd
@@ -15,7 +15,7 @@ cdef class Runner:
 
     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
+++ b/pytouhou/ui/window.pyx
@@ -71,7 +71,7 @@ cdef class Runner:
     cdef void finish(self) except *:
         pass
 
-    cdef bint update(self) except *:
+    cpdef bint update(self) except? False:
         return False