On Sun, 21 Dec 2008 10:09:45 -0800 (PST)
zpcspm <[email protected]> wrote:

> Perhaps it could be made more verbose to dump some explicit error
> message that reports missing python bindings for qscintilla?

Done on the trunk, I think... didn't actually un-install qt to see if it
works :-)

Cheers -Terry

=== modified file 'leo/plugins/qtGui.py'
--- leo/plugins/qtGui.py        2008-12-15 22:12:53 +0000
+++ leo/plugins/qtGui.py        2008-12-21 19:45:09 +0000
@@ -46,10 +46,17 @@
     import qt_main # Contains Ui_MainWindow class
     import PyQt4.QtCore as QtCore
     import PyQt4.QtGui as QtGui
+except ImportError:
+    QtCore = None
+    print('\nqtGui.py: can not import Qt\n')
+try:
     from PyQt4 import Qsci
 except ImportError:
     QtCore = None
-    print('qtGui.py: can not import Qt')
+    print('\nqtGui.py: can not import scintilla for Qt')
+    print('\nqtGui.py: qt-scintalla may be a separate package on your
system')
+    print('\nqtGui.py: e.g. "python-qscintilla2" or similar\n')
+
 #...@-node:ekr.20081121105001.189: << qt imports >>
 #...@nl
 

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to