diff options
| author | Michael Vogt <egon@top> | 2005-12-07 12:38:19 +0100 |
|---|---|---|
| committer | Michael Vogt <egon@top> | 2005-12-07 12:38:19 +0100 |
| commit | 1746af9a6a0440c5fe85cb782ef8afce58a8338b (patch) | |
| tree | 86db0c79931a9b67ab8281fde625979cf59dc772 /DistUpgrade | |
| parent | 36243120b889e764212629019438356a7fb3e21e (diff) | |
| download | python-apt-1746af9a6a0440c5fe85cb782ef8afce58a8338b.tar.gz | |
* various cosmetic fixes
* set debconf/apt-listchanges frontends to gtk
* updated readme
Diffstat (limited to 'DistUpgrade')
| -rw-r--r-- | DistUpgrade/DistUpgrade.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/DistUpgrade/DistUpgrade.py b/DistUpgrade/DistUpgrade.py index afaccf4d..22bf916c 100644 --- a/DistUpgrade/DistUpgrade.py +++ b/DistUpgrade/DistUpgrade.py @@ -89,9 +89,11 @@ class GtkDistUpgradeView(DistUpgradeView,SimpleGladeApp): def start(self): self.progress.show() self.progress.set_fraction(0) + self.status.show() def stop(self): self.progress.hide() self.status.hide() + self.status.hide() def pulse(self): # FIXME: move the status_str and progress_str into python-apt # (python-apt need i18n first for this) @@ -132,7 +134,9 @@ class GtkDistUpgradeView(DistUpgradeView,SimpleGladeApp): # to default to gtk frontends, also add support for the timeout # of the terminal (to display something useful then) # -> longer term, move this code into python-apt - self.env = ["VTE_PTY_KEEP_FD=%s"% self.writefd] + self.env = ["VTE_PTY_KEEP_FD=%s"% self.writefd, + "DEBIAN_FRONTEND=gnome", + "APT_LISTCHANGES_FRONTEND=gtk"] def fork(self): return self.term.forkpty(envv=self.env) def child_exited(self, term, pid, status): @@ -143,7 +147,8 @@ class GtkDistUpgradeView(DistUpgradeView,SimpleGladeApp): self.updateInterface() return self.apt_status def finishUpdate(self): - pass + self.progress.hide() + self.label_status.hide() def updateInterface(self): InstallProgress.updateInterface(self) self.progress.set_fraction(self.percent/100.0) |
