~ubuntu-branches/debian/sid/aptdaemon/sid

« back to all changes in this revision

Viewing changes to aptdaemon/gtkwidgets.py

  • Committer: Package Import Robot
  • Author(s): Julian Andres Klode
  • Date: 2012-03-05 16:03:14 UTC
  • mfrom: (18.1.73 precise)
  • Revision ID: package-import@ubuntu.com-20120305160314-zhwgowgtnu14tlc2
Tags: 0.43+bzr769-1
* New upstream snapshot
  - Works without pkcompat (Closes: #652644)
* Merge with Ubuntu; remaining changes:
  - debian/control: Changes of Vcs, Maintainer stuff
  - Do not use dh-translations

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
import pygtk
45
45
import vte
46
46
 
47
 
from enums import *
 
47
from .enums import *
48
48
from defer import inline_callbacks, return_value
49
49
from defer.utils import deferable
50
50
 
347
347
        self.download_view.set_transaction(transaction)
348
348
 
349
349
    def _on_status_changed(self, trans, status):
350
 
        if status == STATUS_DOWNLOADING:
 
350
        if status in (STATUS_DOWNLOADING, STATUS_DOWNLOADING_REPO):
351
351
            self.set_sensitive(True)
352
352
            self.download_scrolled.show()
353
353
            if self.terminal:
627
627
                    yield self._transaction.set_debconf_frontend("gnome")
628
628
                yield self._transaction.run()
629
629
            self.show_all()
630
 
        except Exception, error:
 
630
        except Exception as error:
631
631
            if error_handler:
632
632
                error_handler(error)
633
633
            else: