On Sun, 2 Nov 2008 13:48:34 +0100, "piotr maliński" <[EMAIL PROTECTED]> wrote: > I want to make Python/PyQt4 APIs for few widgets from qt-apps.org, but > I'm stuck with SIP problems. > > I'm using http://www.qt-apps.org/content/show.php/QTermWidget?content=82832 > QtermWidget > > I've made a sip file: > ##########################3 > %Module QtermWidget 0 > > %Import QtCore/QtCoremod.sip > %Import QtGui/QtGuimod.sip > > > class QTermWidget : QWidget { > > %TypeHeaderCode > #include <qtermwidget.h> > %End > > public: > QTermWidget(int startnow = 1, //start shell programm immediatelly > QWidget *parent = 0); > > }; > ############################# > Executing it returns: > #sip -I /usr/share/sip/ -t WS_X11 -c . *sip > sip: QFileIconProvider is undefined > > When I add "%Import QtGui/qfileiconprovider.sip" then I get: > > sip: No %Module has been specified for module defined in qtermwidget.sip > > Any suggestion about this?
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 _______________________________________________ PyQt mailing list [email protected] http://www.riverbankcomputing.com/mailman/listinfo/pyqt
