Ejemplo n.º 1
0
 def __init__(self, progress, action, parent):
     # TODO: implement the term
     InstallProgress.__init__(self)
     self.progress = progress
     self.action = action
     self.parent = parent
     self.finished = False
     self.parent.konsole.setInstallProgress(self)
Ejemplo n.º 2
0
 def __init__(self):
     InstallProgress.__init__(self)
     QtCore.QObject.__init__(self)
     self.last = 0.0
     self.done = False
     self.message = QtGui.QMessageBox()
     self.message.setIcon(QtGui.QMessageBox.Information)
     self.message.setWindowTitle("Message")
Ejemplo n.º 3
0
 def __init__(self):
     InstallProgress.__init__(self)
     QtCore.QObject.__init__(self)
     self.last = 0.0
     self.done = False
     self.message = QtGui.QMessageBox()
     self.message.setIcon(QtGui.QMessageBox.Information)
     self.message.setWindowTitle("Message")
Ejemplo n.º 4
0
 def __init__(self, progress, action, parent):
     # TODO: implement the term
     InstallProgress.__init__(self)
     self.progress = progress
     self.action = action
     self.parent = parent
     self.finished = False
     self.parent.konsole.setInstallProgress(self)
Ejemplo n.º 5
0
 def __init__(self,progress,term,label,term_expander):
     InstallProgress.__init__(self)
     self.progress = progress
     self.term = term
     self.term_expander = term_expander
     self.finished = False
     self.action = label
     self.time_last_update = time.time()
     self.term.connect("child-exited", self.child_exited)
     self.env = ["VTE_PTY_KEEP_FD=%s"% self.writefd,
                 "DEBIAN_FRONTEND=gnome",
                 "APT_LISTCHANGES_FRONTEND=gtk"]
Ejemplo n.º 6
0
 def __init__(self,progress,term,label,term_expander):
     InstallProgress.__init__(self)
     self.progress = progress
     self.term = term
     self.term_expander = term_expander
     self.finished = False
     self.action = label
     self.time_last_update = time.time()
     self.term.connect("child-exited", self.child_exited)
     self.env = ["VTE_PTY_KEEP_FD=%s"% self.writefd,
                 "DEBIAN_FRONTEND=gnome",
                 "APT_LISTCHANGES_FRONTEND=gtk"]
Ejemplo n.º 7
0
 def __init__(self, db, title, info, error=None):
     InstallProgress.__init__(self)
     self.db = db
     self.title = title
     self.info = info
     self.error_template = error
     self.started = False
     # InstallProgress uses a non-blocking status fd; our run()
     # implementation doesn't need that, and in fact we spin unless the
     # fd is blocking.
     flags = fcntl.fcntl(self.status_stream.fileno(), fcntl.F_GETFL)
     fcntl.fcntl(self.status_stream.fileno(), fcntl.F_SETFL,
                 flags & ~os.O_NONBLOCK)
Ejemplo n.º 8
0
 def __init__(self, db, title, info, error=None):
     InstallProgress.__init__(self)
     self.db = db
     self.title = title
     self.info = info
     self.error_template = error
     self.started = False
     # InstallProgress uses a non-blocking status fd; our run()
     # implementation doesn't need that, and in fact we spin unless the
     # fd is blocking.
     flags = fcntl.fcntl(self.status_stream.fileno(), fcntl.F_GETFL)
     fcntl.fcntl(self.status_stream.fileno(), fcntl.F_SETFL,
                 flags & ~os.O_NONBLOCK)
Ejemplo n.º 9
0
 def __init__(self, term):
     InstallProgress.__init__(self)
     self.finished = False
     self.apt_status = -1
     self.time_last_update = time.time()
     self.term = term
     if old_version:
         self.term.connect("child-exited", self.child_exited)
     else:
         self.term.connect("child-exited", self.child_exited_2)
     self.env = [
         "VTE_PTY_KEEP_FD=%s" % self.writefd, "DEBIAN_FRONTEND=gnome",
         "APT_LISTCHANGES_FRONTEND=Gtk"
     ]
     self._context = GLib.main_context_default()
     super(GInstallProgress, self).__init__()
Ejemplo n.º 10
0
 def __init__(self, cb=None):
     InstallProgress.__init__(self)
     self.cb = cb
 def __init__(self, pbar, status_label):
     InstallProgress.__init__(self)
     self.pbar = pbar
     self.status_label = status_label
     self.last = 0.0
Ejemplo n.º 12
0
 def __init__(self, sysdaemon):
     InstallProgress.__init__(self)
     self.sysdaemon = sysdaemon
Ejemplo n.º 13
0
 def __init__(self, cb=None, fileno=2):
     InstallProgress.__init__(self)
     self.cb = cb
     self.fileno = fileno
 def __init__(self, pbar, status_label):
     InstallProgress.__init__(self)
     self.pbar = pbar
     self.status_label = status_label
     self.last = 0.0
Ejemplo n.º 15
0
 def __init__(self, sysdaemon):
     InstallProgress.__init__(self)
     self.sysdaemon = sysdaemon
Ejemplo n.º 16
0
 def __init__(self, system):
     InstallProgress.__init__(self)
     self.system = system
Ejemplo n.º 17
0
 def __init__(self):
     BaseInstallProgress.__init__(self)
Ejemplo n.º 18
0
 def __init__(self):
     BaseInstallProgress.__init__(self)
Ejemplo n.º 19
0
 def __init__(self, cb=None):
     InstallProgress.__init__(self)
     self.cb = cb
Ejemplo n.º 20
0
 def __init__(self, sig):
     InstallProgress.__init__(self)
     self.last = 0.0
     self.b = ProgressBar()
     self.step = sig
Ejemplo n.º 21
0
 def __init__(self, system):
     InstallProgress.__init__(self)
     self.system = system
Ejemplo n.º 22
0
 def __init__(self, cb=None, fileno=2):
     InstallProgress.__init__(self)
     self.cb = cb
     self.fileno = fileno