Rev 276: Install the QBzr UIFactory after starting the QApplication. in http://bazaar.launchpad.net/~jameinel/bzr-explorer/dialog_for_password

John Arbash Meinel john at arbash-meinel.com
Wed Sep 16 04:19:16 BST 2009


At http://bazaar.launchpad.net/~jameinel/bzr-explorer/dialog_for_password

------------------------------------------------------------
revno: 276
revision-id: john at arbash-meinel.com-20090916031904-l862b4ltj3hfc79g
parent: ian.clatworthy at canonical.com-20090916030024-1c686hs7u565ppta
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: dialog_for_password
timestamp: Tue 2009-09-15 22:19:04 -0500
message:
  Install the QBzr UIFactory after starting the QApplication.
  
  This allows us to prompt via a dialog rather than via the console.
  When connecting to a branch, etc.
  (Such as a lightweight checkout.)
-------------- next part --------------
=== modified file '__init__.py'
--- a/__init__.py	2009-09-16 01:48:16 +0000
+++ b/__init__.py	2009-09-16 03:19:04 +0000
@@ -31,7 +31,7 @@
 lazy_import(globals(), '''
 from PyQt4 import QtGui, QtCore
 
-from bzrlib import bzrdir, debug
+from bzrlib import bzrdir, debug, ui
 
 from bzrlib.plugins.explorer.lib import (
     checkout_dialog,
@@ -120,10 +120,12 @@
 
     def run(self, location=None, hat=None, dry_run=False,
             desktop=None, zzz=False, experimental=False):
+        from bzrlib.plugins.qbzr.lib import uifactory
         _init_explorer_command(zzz, experimental)
 
         # Start the application
         app = QtGui.QApplication(sys.argv)
+        ui.ui_factory = uifactory.QUIFactory()
         window = explorer.QExplorerMainWindow(location=location, profile=hat,
             desktop=desktop, dry_run=dry_run)
         window.show()



More information about the bazaar-commits mailing list