Пример #1
0
 def on_push_state(self, state):
     batch.set_batch(self.name)
     return pyglet.event.EVENT_HANDLED
Пример #2
0
 def on_pop_state(self, state):
     batch.clear(self.name)
     batch.set_batch('default')
     self.window.pop_handlers()
     return pyglet.event.EVENT_HANDLED
Пример #3
0
 def on_regain_focus(self):
     batch.set_batch(self.name)
     return pyglet.event.EVENT_HANDLED