<!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.2900.2912" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=640065515-18122006><FONT face=Arial color=#0000ff size=2>
Thank you (and Thanks to </FONT><FONT face=Arial><FONT color=#0000ff><FONT
size=2>Hendrik<SPAN class=640065515-18122006>). Both good ideas. I will need to
do those or something similar too.</SPAN></FONT></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=640065515-18122006><FONT face=Arial><FONT color=#0000ff><FONT
size=2><SPAN class=640065515-18122006>But what I really want to know is what I
need to do when pressing the "Run Script" button, so that
I</SPAN></FONT></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=640065515-18122006><FONT face=Arial><FONT color=#0000ff><FONT
size=2><SPAN class=640065515-18122006>'return' to the GUI every once in a while,
like every 100 milliseconds to check if the "Abort
Script"</SPAN></FONT></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=640065515-18122006><FONT face=Arial><FONT color=#0000ff><FONT
size=2><SPAN class=640065515-18122006>button is
pressed.</SPAN></FONT></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=640065515-18122006><FONT face=Arial><FONT color=#0000ff><FONT
size=2><SPAN class=640065515-18122006> Presently what happens
is that the script takes over and all the buttons on the GUI
disappear</SPAN></FONT></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=640065515-18122006><FONT face=Arial><FONT color=#0000ff><FONT
size=2><SPAN class=640065515-18122006>as the GUI is not given any cpu time to
refresh or check if any activity in the
dialog.</SPAN></FONT></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=640065515-18122006><FONT face=Arial><FONT color=#0000ff><FONT
size=2><SPAN
class=640065515-18122006></SPAN></FONT></FONT></FONT></SPAN> </DIV>
<DIV><SPAN class=640065515-18122006><FONT face=Arial><FONT color=#0000ff><FONT
size=2><SPAN class=640065515-18122006>Thanks in
advance:</SPAN></FONT></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=640065515-18122006><FONT face=Arial><FONT color=#0000ff><FONT
size=2><SPAN class=640065515-18122006>Michael
Yanowitz</SPAN></FONT></FONT></FONT></SPAN><SPAN class=640065515-18122006><FONT
face=Arial><FONT color=#0000ff><FONT size=2><SPAN
class=640065515-18122006> </SPAN></FONT></FONT></FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B>
python-list-bounces+m.yanowitz=kearfott.com@python.org
[mailto:python-list-bounces+m.yanowitz=kearfott.com@python.org]<B>On Behalf Of
</B>Mohammad Tayseer<BR><B>Sent:</B> Monday, December 18, 2006 10:40
AM<BR><B>To:</B> python-list@python.org<BR><B>Subject:</B> Re: Can a Tkinter
GUI check for abort script:<BR><BR></FONT></DIV>To view a button & hide
the other, call .pack_forget() on the button you want to hide & pack() on
the button you want to show<BR><BR>test3.py should contains a main() function
that returns the new window. if you press 'Abort script' button you should
call new_window.destroy(), pack_forget() the current button & pack() the
'run script' button<BR><BR><BR>
<P>__________________________________________________<BR>Do You
Yahoo!?<BR>Tired of spam? Yahoo! Mail has the best spam protection around
<BR>http://mail.yahoo.com </P></BLOCKQUOTE></BODY></HTML>