示例#1
0
 def pause_scene(self):
     # Empty the queue before changing scenes.
     self.flush_events()
     self.signal(events.ScenePaused())
     self.publish()
示例#2
0
 def _pause_scene(self):
     """Pause the current scene."""
     # Empty the queue before changing scenes.
     self._flush_events()
     self.signal(events.ScenePaused())
     self.publish()