It will be the app.exec_() call.

There can only be one qApp and Maya is now built with QT.  This is why it
works in 2010 and not in 2011 and up.

In fact.  You only have 1 qApp even if 2 versions of QT maya's are up and
running.

just do:-

form = Form()
form.show()

See http://nathanhorne.com/

for more useful stuff!


On Tue, Dec 6, 2011 at 10:44 AM, Panupat Chongstitwattana <
[email protected]> wrote:

> Hi.
>
> I'm following example from a book "Rapid GUI Programming with Python and
> Qt"
>
> http://www.qtrac.eu/pyqtbook.html
>
> I am on chapter 4 where it shows a little calculator script with gui.
>
> Running the pyw on windows, and copy paste the script into 2010, the
> script works fine with nothing wrong
>
> On Maya 2012 tho it freezes Maya. The calcualtor itself does work, I
> can move it around and do calculations. I don't understand what is it
> doing that freezes Maya. Can anyone help look at the code?
>
> The code can be downloaded here, it's in chapter 4 called calculator.pyw
> http://www.qtrac.eu/pyqtbook26.zip
>
> Best regard,
> Panupat C.
>
> --
> view archives: http://groups.google.com/group/python_inside_maya
> change your subscription settings:
> http://groups.google.com/group/python_inside_maya/subscribe
>



-- 
David Moulder
http://www.google.com/profiles/squish3d

-- 
view archives: http://groups.google.com/group/python_inside_maya
change your subscription settings: 
http://groups.google.com/group/python_inside_maya/subscribe

Reply via email to