Hi Justin, I have been developing my Python alongside the CMX videos I have purchased (Awesome by the way!) and I am progressing well. I am starting to get to grips with the draw features from some other tutorials, but they can be somewhat sparse on examples. I would like to ask if you could give me a pointer towards the learning that will allow me to create a node based interface using custom or predefined SVG elements. I want to create a system, (unsure of what yet) that will give the end user an interface and ability like that of the following:
https://www.youtube.com/watch?v=D3rWOXgZ3qI I am slightly running before I can walk here, but some reference would be helpful for future developments. Many thanks and thanks for the work put into the educational videos, they have been excellent value for money. I am still working my way through the rigging ones as well. Plus, using the Beastie Boys as a loading tune was great. Cheers On Wed, Mar 12, 2014 at 6:44 PM, Justin Israel <[email protected]> wrote: > I'm not sure what you don't have as a windows user... but if you are using > a standard python intepreter in a shell to test this, then you must create > a QApplication before creating widgets > > app = QtGui.QApplication([]) > > In my tutorials when I use ipython --gui, it will create one for you and > start the event loop. > In Maya, a QApplication is also already created. > > - justin > On Mar 13, 2014 7:38 AM, <[email protected]> wrote: > >> I am a windows 7 64 bit user, using Python 2.7.3 and am following the >> cmivfx tutorial:Pyqt4andMaya >> >> When I enter the code: >> >> from PyQt4 import QtGui >> widget = QtGui.QWidget() >> widget.resize(400,300) >> widget.show() >> widget.raise_() >> #button = QTGui.QpushButton('Button') >> #button.show() >> #button.raise_() >> button = QtGui.QPushButton('Button', parent = widget) >> button.show() >> button.move(30, 40) >> >> I also get the error: >> >> QWidget: Must construct a QApplication before a QPaintDevice >> >> >> As the tut is on a mac, I have noticed a few things that I do not have as >> a windows user so what am I doing wrong? >> >> I am not using iPython. >> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Python Programming for Autodesk Maya" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/python_inside_maya/4ea09bcd-ab56-41b0-b559-6fff02376f95%40googlegroups.com >> . >> For more options, visit https://groups.google.com/d/optout. >> > -- > You received this message because you are subscribed to a topic in the > Google Groups "Python Programming for Autodesk Maya" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/python_inside_maya/L-UdL6sqByM/unsubscribe > . > To unsubscribe from this group and all its topics, send an email to > [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA1cd-zBXee%3DAtf%2Bwzh95AmSkRi5MCB%2BN%2BjG4835F1Tung%40mail.gmail.com > <https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA1cd-zBXee%3DAtf%2Bwzh95AmSkRi5MCB%2BN%2BjG4835F1Tung%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAJ7Ouxc%3DD7ngEP94e8X-sMktg5Yquqgb-D-qgdDwKZSAwa4f2g%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
