def cb_button_settings(self, button):
output = self.combobox_monitor.get_active_text().split()[0]
os.system('xrandr --output '+ output + ' --primary')
self.main_window.hide()
while Gtk.events_pending():
Gtk.main_iteration()
if self.scummvm == 'global':
if global_scummvm == 'system':
launch_command = 'scummvm --no-fullscreen -c ' + self.install_dir \
+ '/' + self.game_name + '/scummvmrc'
if global_scummvm == 'path':
launch_command = global_scummvm_path + '/' + global_scummvm_version + \
'/bin/scummvm --no-fullscreen -c ' + self.install_dir \
+ '/' + self.game_name + '/scummvmrc'
elif self.scummvm == 'system':
launch_command = 'scummvm --no-fullscreen -c ' + self.install_dir \
+ '/' + self.game_name + '/scummvmrc'
elif self.scummvm == 'path':
launch_command = self.scummvm_path + '/' + self.scummvm_version + \
'/bin/scummvm --no-fullscreen -c ' + self.install_dir \
+ '/' + self.game_name + '/scummvmrc'
os.system(launch_command)
output = self.monitor_primary.split()[0]
os.system('xrandr --output '+ output + ' --primary')
self.main_window.show()
评论列表
文章目录