def mylib_launch_game(self, button):
self.switch_monitor('ON')
self.main_window.hide()
if len(self.additional_windows_list) != 0:
for window in self.additional_windows_list:
window.hide()
while Gtk.events_pending():
Gtk.main_iteration()
game_name = button.get_name()
self.set_environ(game_name, self.mylib_download_dir, self.mylib_install_dir)
start_path = self.mylib_install_dir + '/' + game_name + '/start.sh'
os.system('chmod +x ' + start_path)
os.system(start_path)
self.switch_monitor('OFF')
self.main_window.show()
if len(self.additional_windows_list) != 0:
for window in self.additional_windows_list:
window.show()
评论列表
文章目录