Esempio n. 1
0
 def __init__(self):
     self.left = []
     self.right = []
     if self.use_clock_item():
         self.right.append(ClockItem())
     # if Render.get().allow_minimize:
     #     if Config.get_bool("menu/minimize", True):
     #         self.right.append(MinimizeItem())
     command = GameCenterSettings.get_shutdown_command()
     if command:
         self.right.append(ShutdownItem())
     else:
         self.right.append(CloseItem())
     self._selected_index = 0
Esempio n. 2
0
 def activate(self, menu):
     command = GameCenterSettings.get_shutdown_command()
     if command:
         os.system(command)
     post_quit_event()
Esempio n. 3
0
 def activate(self, menu):
     command = GameCenterSettings.get_shutdown_command()
     if command:
         os.system(command)
     post_quit_event()