There is an example script osgviewerQt4.py in the osgswig project. (using a combination of osgswig and PyQt4)
see http://code.google.com/p/osgswig/ Succes, Rene 2009/11/5 christophe chappet <[email protected]> > > chappet wrote: > > Hi, > > > > Is there someboby that has ported the osgviewerQT into Python ? > > > http://www.openscenegraph.org/projects/osg/browser/OpenSceneGraph/trunk/examples/osgviewerQT/osgviewerQT.cpp > > > > I have a problem with the multiple inheritance. > > > > Thank you! > > > > Cheers, > > christophe > > > I have attached my "python port" of the osgviewerQT file but the ViewerQT > class declaration is not correct and generates the following error : > > Traceback (most recent call last): > File "F:\dev\workspace\PYGMT\src\PyGMT\GMT3D\AdapterWidget.py", line 91, > in <module> > viewerWindow = ViewerQT() > File "F:\dev\workspace\PYGMT\src\PyGMT\GMT3D\AdapterWidget.py", line 71, > in __init__ > > self.getCamera().setViewport(osg.Viewport(0,0,self.width(),self.height())) > File "c:\Python25\lib\site-packages\osg-2.2.0-msw\osg.py", line 3564, in > getCamera > def getCamera(*args): return _osg.View_getCamera(*args) > NotImplementedError: Wrong number of arguments for overloaded function > 'View_getCamera'. > Possible C/C++ prototypes are: > getCamera() > getCamera() > > I hope it helps. > > Cheers, > christophe > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=19227#19227 > > > > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > >
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

