Ejemplo n.º 1
0
    def requestQuit(self):
        """
		Sends the quit command to the application's listener.  We could set
		self.quitRequested to true also but this is a good example on how
		to build and dispatch a fife.Command.
		"""
        cmd = fife.Command()
        cmd.setSource(None)
        cmd.setCommandType(fife.CMD_QUIT_GAME)
        self.engine.getEventManager().dispatchCommand(cmd)
Ejemplo n.º 2
0
 def onQuitButtonPress(self):
     cmd = fife.Command()
     cmd.setSource(None)
     cmd.setCommandType(fife.CMD_QUIT_GAME)
     self.engine.getEventManager().dispatchCommand(cmd)
Ejemplo n.º 3
0
 def requestQuit(self):
     cmd = fife.Command()
     cmd.setSource(None)
     cmd.setCommandType(fife.CMD_QUIT_GAME)
     self.engine.getEventManager().dispatchCommand(cmd)