Hello there,

I'm watching *Justin Israel'*s video on PyQT and I have the following
question:

Why is it that if a 'QPushbutton' is created with a widget as a parent it
works fine but if I create the button first and then parent it using the
'setParent' method of a 'QObject', it doesn't?

Here is the code that I'm executing with iPython (where I already have an
event loop working)

https://gist.github.com/davidmartinezanim/9586313

I'm just trying to understand the specifics of why that doesn't work.
I've tried printing the parent of both buttons and both of them are
children of the widget.


--
David Martinez - Technical Animator

Email: [email protected]
Website: http://www.elusiveideas.com

-- 
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/CAMLeNpzu2%2BPOs5pZypwGuBvkXX_zb7w0cp7nvsyV8tDCcj8eVw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to