def install(self): """Run Gamecube or Wii game""" NoticeDialog( 'Please activate the Dolphin PPA reposiories in order to ' 'install Dolphin' ) super(dolphin, self).install()
def on_runner_installed(*args): mapping_path = system.create_folder("~/.reicast/mappings") mapping_source = os.path.join(settings.RUNNER_DIR, "reicast/mappings") for mapping_file in os.listdir(mapping_source): shutil.copy(os.path.join(mapping_source, mapping_file), mapping_path) system.create_folder("~/.reicast/data") NoticeDialog(_("You have to copy valid BIOS files to ~/.reicast/data before playing"))
def on_folder_selected(self, dialog, response): if response != Gtk.ResponseType.OK: return target_path = dialog.get_current_folder() if not target_path: return issue_path = os.path.join(target_path, "lutris-issue-report.json") issue_info = self.get_issue_info() with open(issue_path, "w") as issue_file: json.dump(issue_info, issue_file, indent=2) dialog.destroy() NoticeDialog("Issue saved in %s" % issue_path)
def on_folder_selected(self, dialog, response, _dialog): if response != Gtk.ResponseType.ACCEPT: return target_path = dialog.get_filename() if not target_path: return issue_path = os.path.join(target_path, "lutris-issue-report.json") issue_info = self.get_issue_info() with open(issue_path, "w", encoding='utf-8') as issue_file: json.dump(issue_info, issue_file, indent=2) dialog.destroy() NoticeDialog(_("Issue saved in %s") % issue_path) self.destroy()
def delete_cb(self, result, error): if error: logger.error(error) NoticeDialog("Something went wrong while deleting the game") self.destroy()
def install(self): message = "Steam for Linux installation is not handled by Lutris.\n" \ "Please go to " \ "<a href='http://steampowered.com'>http://steampowered.com</a>" \ " or install Steam with the package provided by your distribution." NoticeDialog(message)
def on_service_synced(self, caller, data): parent = self.get_toplevel() if not isinstance(parent, Gtk.Window): # The sync dialog may have closed parent = Gio.Application.get_default().props.active_window NoticeDialog("Games synced", parent=parent)