[EMAIL PROTECTED] wrote:
> hi
> 
> am using Tix notebook and i have two frames in that. am adding some
> widgets in to both of the frames. now i want to delete all of the
> widgets in one of the frame. i dont want to delete the frame, but its
> childres.
> so how can i get the sub widgets within that frame.
> 
> Thanks in advance
> Anil
> 


Anil,


Standard Tkinter widgets have a .children so for your frame widget
try printing the value of yourframe.children like so:-

Python 2.2.3 (#42, May 30 2003, 18:12:08) [MSC 32 bit (Intel)] on win32
Type "copyright", "credits" or "license" for more information.
IDLE 0.8 -- press F1 for help
 >>> import Tkinter
 >>> root=Tkinter.Tk()
 >>> l=Tkinter.Label(root)
 >>> l.pack()
 >>> print root.children
{'10703960': <Tkinter.Label instance at 0x00A35458>}
 >>>

HTH
Martin
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to