[Maya-Python] how to retrive Objects created dynamically

2012-09-03 Thread PBLN RAO
Hi, I have a QFrame (Frame_ptr), and at run time i am creating a frames in loop with child objects in that frame. like [code] for i in range (1,5): self.frame = QtGui.QFrame(self.Frame_ptr) # creating frame as child in Frame_prt as discussed above

Re: [Maya-Python] How to get if a Frame exists in the window

2012-09-03 Thread PBLN RAO
Justin, if i delete the window in maya once shown. and use the any of the below method (for ex : mainWin.findChildren(QtGui.QFrame, framie3) ) its still returning the value. i think the window is not removed/destroyed permanently. How to overcome this. On Friday, August 31, 2012 9:56:06 PM

Re: [Maya-Python] How to delete QFrame

2012-09-03 Thread Justin Israel
What was wrong with the previous example given to do just that? When you delete a parent, the children automatically go with it. On Sep 2, 2012, at 10:31 PM, PBLN RAO pblnra...@yahoo.co.in wrote: thirstydevil, i want to delete the a QFrame item including all its children. QFrame is

Re: [Maya-Python] how to retrive Objects created dynamically

2012-09-03 Thread Justin Israel
You are replacing the same self.frame each time you loop for i in range (1,5): self.frame = QtGui.QFrame(self.Frame_ptr) This will work in terms of creating them and parenting each button to the frame you just made. As a different point, I don't see where you have the attribute name:

Re: [Maya-Python] How to get if a Frame exists in the window

2012-09-03 Thread Justin Israel
1) How are you deleting the QFrame? 2) Are you just testing this in the script editor, or as part of a script that is running? Make sure you are using: anObject.deleteLater() This will put a request in the event loop queue to perform the deletion when control returns from the current scope.

Re: [Maya-Python] Re: image thumbnails layout in PyQt

2012-09-03 Thread Jay Goodman
I had an app that created icons from QPixmaps, but I ran into performance issues because my source images were so much larger than the icons, so I ended up generating xpm icon files on the fly and it really sped things up. On Friday, August 24, 2012 6:58:42 AM UTC+8, jdob wrote: You'll have