It is not working like that, I can't give too much technical detail, but you first need to create a window/dialog object, than attach the label widget/control to it... try to google some PyQt tutorials...
E.Ozgur Yilmaz Lead Technical Director eoyilmaz.blogspot.com www.ozgurfx.com On Fri, Jul 16, 2010 at 5:32 AM, Tweedle Dum <[email protected]> wrote: > I made some progress but still getting stuck > I compiled PyQt with python 2.5, with the mayapy command. > > import sys > from PyQt4 import QtGui as qt > app = qt.QApplication(sys.argv) > hello = qt.QLabel("Hello world!", None) > hello.show() > app.processEvents() > # Error: NULL result without error in PyObject_Call > # Traceback (most recent call last): > # File "<maya console>", line 3, in <module> > # SystemError: NULL result without error in PyObject_Call # > > On Jul 12, 1:36 am, Erkan Özgür Yılmaz <[email protected]> wrote: > > Probably you are using PyQt compiled for Python 2.6 and Maya 2009 uses > > Python 2.5 instead... > > > > E.Ozgur Yilmaz > > Lead Technical Director > > eoyilmaz.blogspot.comwww.ozgurfx.com > > > > > > > > On Sat, Jul 10, 2010 at 4:38 PM, Tweedle Dum <[email protected]> > wrote: > > > Hi, > > > I'm struggling with getting pyqt to work with maya 2009. I searched > > > through the discussions but I couldn't find a solution. I'm getting > > > the following error : > > > > > # Error: /usr/autodesk/maya2009-x64/lib/python2.5/site-packages/PyQt4/ > > > QtCore.so: undefined symbol: PyByteArray_Type > > > # Traceback (most recent call last): > > > # File "<maya console>", line 6, in <module> > > > # ImportError: /usr/autodesk/maya2009-x64/lib/python2.5/site-packages/ > > > PyQt4/QtCore.so: undefined symbol: PyByteArray_Type # > > > > > thanks > > > > > -- > > >http://groups.google.com/group/python_inside_maya > > -- > http://groups.google.com/group/python_inside_maya > -- http://groups.google.com/group/python_inside_maya
