def goglib_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.goglib_download_dir, self.goglib_install_dir)
start_file_path = self.goglib_install_dir + '/' + game_name + '/start.sh'
os.system('chmod +x ' + start_file_path)
os.system(start_file_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()
评论列表
文章目录