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