Hi, I've attached a small Qt project for a Python shell. It also uses QScintilla. It's amazing that I made this in about 5 minutes, thanks Phil!
The problem I'm encountering is that I can only correctly import a PyQt4 module once using this shell. If I try to import again then I cannot use classes within the module. The code from PyQt4 import QtCore QtCore.QObject() succeeds the first time it is run. The second time it complains that "AttributeError: 'module' object has no attribute 'QObject'". This does not happen with other modules like sys. The Python execution code uses all temporary variables. At first I thought this was because of a flaw in my C++ code, but the success of loading a non-Qt-based modules piqued my curiosity. Has anyone ever seen something like this?
sample.tar.gz
Description: application/compressed-tar
_______________________________________________ PyQt mailing list [email protected] http://www.riverbankcomputing.com/mailman/listinfo/pyqt
