def _confirm_deps(self, trans): if [pkgs for pkgs in trans.dependencies if pkgs]: dia = AptConfirmDialog(trans, parent=self.parent) res = dia.run() dia.hide() if res != Gtk.ResponseType.OK: return self._run_transaction(trans)
def apt_confirm_deps(self, trans): try: if [pkgs for pkgs in trans.dependencies if pkgs]: dia = AptConfirmDialog(trans, parent=self.main_window) res = dia.run() dia.hide() if res != Gtk.ResponseType.OK: return self.apt_run_transaction(trans) except Exception as e: print(e)
def _confirm_deps(self, trans): if [pkgs for pkgs in trans.dependencies if pkgs]: dia = AptConfirmDialog(trans, parent=self.parent) res = dia.run() dia.hide() if res != Gtk.ResponseType.OK: log.debug("Response is: %s" % res) if self.finish_handler: log.debug("Finish_handler...") self.finish_handler(trans, 0, self.data) return self._run_transaction(trans)
def _confirm_deps(self, trans): try: if [pkgs for pkgs in trans.dependencies if pkgs]: dia = AptConfirmDialog(trans, parent=self.parent_window) res = dia.run() dia.hide() if res != Gtk.ResponseType.OK: if self.cancelled_callback is not None: self.cancelled_callback() return self._run_transaction(trans) except Exception as e: print(e)
def _confirm(self): dia = AptConfirmDialog(self._transaction) response = dia.run() dia.destroy() if response == Gtk.ResponseType.OK: self._install()