<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16544" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>I've been trying to figure out how to use the 
<STRONG>container</STRONG> option in a frame widget in conjunction with the 
<STRONG>use</STRONG> option with a Toplevel widget.  Which according to the 
documentation I've read sounds like it will give me a Windows MDI like 
application with free-floating child windows within the 
<STRONG>container</STRONG> widget.  Has anyone successfully used this 
feature?  Here's the code I've been playing with.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thanks for any help.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>import Tkinter as Tk</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV><FONT face=Arial size=2>
<DIV><BR>tkRoot = Tk.Tk( )<BR>f = Tk.Frame( tkRoot, container=True )<BR>f.pack( 
)</DIV>
<DIV> </DIV>
<DIV>t1 = Tk.Toplevel( use=f )<BR>b1  = Tk.Button( t1, text="Pres me" 
)<BR>b1.pack( )</DIV>
<DIV> </DIV>
<DIV>t2 = Tk.Toplevel( use=f )<BR>b2  = Tk.Button( t2, text="No pres me!" 
)<BR>b2.pack( )</DIV>
<DIV> </DIV>
<DIV><BR>tkRoot.mainloop( )</DIV>
<DIV> </DIV>
<DIV></FONT> </DIV></BODY></HTML>