Example #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)
Example #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")
Example #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")
Example #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)
Example #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"]
Example #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"]
Example #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)
Example #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)
Example #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__()
Example #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
Example #12
0
 def __init__(self, sysdaemon):
     InstallProgress.__init__(self)
     self.sysdaemon = sysdaemon
Example #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
Example #15
0
 def __init__(self, sysdaemon):
     InstallProgress.__init__(self)
     self.sysdaemon = sysdaemon
Example #16
0
 def __init__(self, system):
     InstallProgress.__init__(self)
     self.system = system
Example #17
0
 def __init__(self):
     BaseInstallProgress.__init__(self)
Example #18
0
 def __init__(self):
     BaseInstallProgress.__init__(self)
Example #19
0
 def __init__(self, cb=None):
     InstallProgress.__init__(self)
     self.cb = cb
Example #20
0
 def __init__(self, sig):
     InstallProgress.__init__(self)
     self.last = 0.0
     self.b = ProgressBar()
     self.step = sig
Example #21
0
 def __init__(self, system):
     InstallProgress.__init__(self)
     self.system = system
Example #22
0
 def __init__(self, cb=None, fileno=2):
     InstallProgress.__init__(self)
     self.cb = cb
     self.fileno = fileno