def on_Updater_ApplyButton_clicked(*args): UpdaterWindow.get_window().set_cursor(Gdk.Cursor(Gdk.CursorType.WATCH)) while Gtk.events_pending(): Gtk.main_iteration() error = transaction.sysupgrade(show_updates = False) if error: handle_error(error)
def on_Updater_ApplyButton_clicked(*args): UpdaterWindow.get_window().set_cursor(Gdk.Cursor(Gdk.CursorType.WATCH)) while Gtk.events_pending(): Gtk.main_iteration() error = transaction.sysupgrade(show_updates=False) if error: handle_error(error)
def handle_updates(updates): ManagerWindow.get_window().set_cursor(None) transaction.ProgressWindow.hide() transaction.available_updates = updates error = transaction.sysupgrade() if error: handle_error(error)