<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE id=ridTitle>Blank</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<STYLE>BODY {
        MARGIN-TOP: 25px; FONT-SIZE: 10pt; MARGIN-LEFT: 25px; COLOR: #000000; FONT-FAMILY: Arial; BACKGROUND-COLOR: #ffffff
}
P.msoNormal {
        MARGIN-TOP: 0px; FONT-SIZE: 10pt; MARGIN-LEFT: 0px; COLOR: #ffffcc; FONT-FAMILY: Helvetica, "Times New Roman"
}
LI.msoNormal {
        MARGIN-TOP: 0px; FONT-SIZE: 10pt; MARGIN-LEFT: 0px; COLOR: #ffffcc; FONT-FAMILY: Helvetica, "Times New Roman"
}
</STYLE>

<META content="MSHTML 6.00.2800.1586" name=GENERATOR></HEAD>
<BODY id=ridBody 
style="FONT-SIZE: 10pt; COLOR: #000000; FONT-FAMILY: Arial; BACKGROUND-COLOR: #ffffff" 
bgColor=#ffffff background=cid:870143720@13022007-099A>
<P><SPAN class=870143720-13022007>Hi,</SPAN></P>
<P><SPAN class=870143720-13022007>I have found many simple examples of using Tk 
with one frame.&nbsp; I found self.quit to close the open frame object.&nbsp; I 
see that control goes to the end of main, but I don't know how to 
then&nbsp;create and use another frame.&nbsp; </SPAN></P>
<P><SPAN class=870143720-13022007>Below is a</SPAN><SPAN 
class=870143720-13022007>&nbsp;"cut-down" version of what I have 
tried.</SPAN></P>
<P><SPAN class=870143720-13022007>Thanks for any help,</SPAN></P>
<P><SPAN class=870143720-13022007>Les Hazlett</SPAN></P>
<P><SPAN class=870143720-13022007>=====================</SPAN></P>
<P><SPAN class=870143720-13022007># Test using TK</SPAN></P>
<P><SPAN class=870143720-13022007>from Tkinter import *</SPAN></P>
<P><SPAN class=870143720-13022007>class Window1(Frame):<BR>&nbsp;&nbsp;&nbsp; 
def __init__(self, master):<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
Frame.__init__(self, master)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
self.grid()<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
self.create_widgets()</SPAN></P>
<P><SPAN class=870143720-13022007>&nbsp;&nbsp;&nbsp; def 
create_widgets(self):<BR>&nbsp;&nbsp;&nbsp; &nbsp;# create a quit 
button<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
Button(self,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
text = 
"Quit",<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
command = 
self.quit<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
).grid(row = 10, column = 1)</SPAN></P>
<P><SPAN class=870143720-13022007># main<BR>root = Tk()<BR>root.title("Portable 
Disk Upload")<BR>app = Window1(root)<BR>root.mainloop()</SPAN></P>
<P><SPAN class=870143720-13022007>print '\nWanted to stop here and do it 
again.'</SPAN></P>
<P><SPAN class=870143720-13022007>root = Tk()<BR>root.title("Select Source 
Directory")<BR>app = Window1(root)<BR>root.mainloop</SPAN></P>
<DIV><P><HR>
The information contained in this communication may be CONFIDENTIAL and is intended only for the use of the recipient(s) named above. If you are not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication, or any of its contents, is strictly prohibited. If you have received this communication in error, please notify the sender and delete/destroy the original message and any copy of it from your computer or paper files.
</P></DIV>
</BODY></HTML>