Mercurial > touhou
diff pytouhou/ui/gamerunner.py @ 304:f3099ebf4f61
Update attribute names to reflect the actual interface.
author | Thibaut Girka <thib@sitedethib.com> |
---|---|
date | Tue, 13 Mar 2012 18:38:14 +0100 |
parents | da53bc29b94a |
children | 61adb5453e46 |
line wrap: on
line diff
--- a/pytouhou/ui/gamerunner.py +++ b/pytouhou/ui/gamerunner.py @@ -168,7 +168,7 @@ class GameRunner(pyglet.window.Window, G gluOrtho2D(0., float(self.width), float(self.height), 0.) glViewport(0, 0, self.width, self.height) - items = [item for item in interface.items if item._anmrunner and item._anmrunner._running] + items = [item for item in interface.items if item.anmrunner and item.anmrunner.running] labels = interface.labels if items: # Force rendering of labels @@ -178,7 +178,7 @@ class GameRunner(pyglet.window.Window, G else: self.render_elements(chain(*(label.objects() for label in labels.itervalues() - if label._changed))) + if label.changed))) for label in interface.labels.itervalues(): - label._changed = False + label.changed = False