Re: [PyQt] Wrapping a C++ class with SIP

2011-08-11 Thread Vipul Raheja
Hi, I was able to remove the error by removing the parent class's name from the class definition. I am able to run config.py, however, it gives another error when I run the make. vipul@vipul-laptop:~/ossim-svn/src/pyossim/sip/current$ python config.py sip: ossimPlanetQtLegendAnimationPathItem::se

Re: [PyQt] boost python windget in a pyqt widget

2011-08-11 Thread Phil Thompson
On Thu, 11 Aug 2011 09:15:32 -0700, Josh Stratton wrote: > Is there an example of that somewhere? PyQt itself. > Is that on the python side or > the C++ side? I don't understand the question. > Does that mean I cannot use boost::python and need to > switch to SIP? Yes, for your Qt widgets. P

Re: [PyQt] boost python windget in a pyqt widget

2011-08-11 Thread Josh Stratton
Is there an example of that somewhere? Is that on the python side or the C++ side? Does that mean I cannot use boost::python and need to switch to SIP? On Thu, Aug 11, 2011 at 9:10 AM, Phil Thompson wrote: > On Thu, 11 Aug 2011 08:48:20 -0700, Josh Stratton > wrote: >> Is it possible to add qt

Re: [PyQt] boost python windget in a pyqt widget

2011-08-11 Thread Phil Thompson
On Thu, 11 Aug 2011 08:48:20 -0700, Josh Stratton wrote: > Is it possible to add qt widgets from a cmodule to a pyqt class? > > For example if I have a widget MyWidget in mytest.so, > > from pyqt import * > import mytest > > widget = mytest.MyWidget() # C++ qt widget > window = QtGui.QMainWindo

[PyQt] QtGui not being compiled/installed on Snow Leopard Python2.7.1

2011-08-11 Thread Jeremy Conlin
I'm trying to install PyQt on my Mac running Snow Leopard with my own Python 2.7.1. I'm doing this to check out the new qtconsole in iPtyhon 0.11. When iPython opens I end up with a message: from PyQt4 import QtCore, QtGui, QtSvg ImportError: cannot import name QtGui Is there some reason why QtG

[PyQt] boost python windget in a pyqt widget

2011-08-11 Thread Josh Stratton
Is it possible to add qt widgets from a cmodule to a pyqt class? For example if I have a widget MyWidget in mytest.so, from pyqt import * import mytest widget = mytest.MyWidget() # C++ qt widget window = QtGui.QMainWindow() window.setCentralWidget(widget) # put C++ widget in pyqt widget window.