[PyQt] SIP tutorial/docs problems

Phil Thompson phil at riverbankcomputing.com
Sun Nov 2 22:04:31 GMT 2008


On Sun, 2 Nov 2008 16:52:31 +0100, "piotr maliński" <riklaunim at gmail.com>
wrote:
> 2008/11/2, Phil Thompson <phil at riverbankcomputing.com>:
>>
>> You haven't passed enough -t flags. It will be easier to use the
>>  PyQt4.pyqtconfig module to do all this for you.
>>
>>  Have a look at the Python bindings included in QScintilla for a simple,
>>  but
>>  complete example.
>>
>>
>>  Phil
>>
> 
> Well, I googled a bit, and I've managed to compile the code, but it
> doesn't work yet :)
> Testing it with:
> ################
> import sys
> from PyQt4 import Qt
> import QtermWidget
> 
> a = Qt.QApplication(sys.argv)
> w = QtermWidget()
> 
> w.show()
> a.exec_()
> ################
> I get "TypeError: 'module' object is not callable". Probably bad *sip
> file, or the module should be used in another way?. The whole code is
> in http://www.rk.edu.pl/qterm.tar.gz
> (README for the commands, needs installed QTermWidget from
> http://qt-apps.org/content/show.php/QTermWidget?content=82832)

w = QtermWidget.QtermWidget()

Phil


More information about the PyQt mailing list