diff pytouhou/ui/window.pyx @ 469:58b47e788c59

Move SDL context-manager and Window creation outside of main.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Sat, 14 Sep 2013 01:05:42 +0200
parents 36bc577b2392
children 2276229282fd
line wrap: on
line diff
--- a/pytouhou/ui/window.pyx
+++ b/pytouhou/ui/window.pyx
@@ -170,3 +170,7 @@ cdef class Window:
 
     cdef double get_fps(self) nogil:
         return self.clock.get_fps()
+
+
+    def del_runner(self):
+        self.runner = None