def install(pkgs): if get_pkgs(pkgs): error = transaction.run() while Gtk.events_pending(): Gtk.main_iteration() if error: handle_error(error)
def on_ManagerValidButton_clicked(*args): ManagerWindow.get_window().set_cursor(Gdk.Cursor(Gdk.CursorType.WATCH)) while Gtk.events_pending(): Gtk.main_iteration() error = transaction.run(recurse=config.recurse) ManagerWindow.get_window().set_cursor(None) if error: handle_error(error)
def on_ManagerValidButton_clicked(*args): ManagerWindow.get_window().set_cursor(Gdk.Cursor(Gdk.CursorType.WATCH)) while Gtk.events_pending(): Gtk.main_iteration() error = transaction.run(recurse = config.recurse) ManagerWindow.get_window().set_cursor(None) if error: handle_error(error)
def on_package_open_button_clicked(*args): packages_paths = PackagesChooserDialog.get_filenames() if packages_paths: PackagesChooserDialog.hide() while Gtk.events_pending(): Gtk.main_iteration() for path in packages_paths: transaction.to_load.add(path) ManagerWindow.get_window().set_cursor(Gdk.Cursor(Gdk.CursorType.WATCH)) while Gtk.events_pending(): Gtk.main_iteration() error = transaction.run() ManagerWindow.get_window().set_cursor(None) if error: handle_error(error)