<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
I have no qualms about sending you the code. The code by itself would
not be executable though unless I provide several files. The critical
ones are a jpg, which is used to fill the initial display area, and two
others that have to do with color and making a movie. A minimum of two
data files may be needed, but I suspect they could be skipped. If they
are necessary, then it's a simple matter of creating an Events folder
and putting them there. The py and extra files need to in the same
folder. It runs in Py 2.5. I guess the data files would be useful in&nbsp;
the case where one might test the exit when data is viewed. I think I
found the same results. <br>
<br>
On 2/11/2010 2:27 PM, Peter Milliken wrote:
<blockquote
 cite="mid:791153ba1002111427p4c83f16fo6ff2eed9161bfd0a@mail.gmail.com"
 type="cite">It does look strange, but with only the code you present
we can only make some assumptions i.e.&nbsp;
  <div><br>
  </div>
  <div>self.running = False</div>
  <div><br>
  </div>
  <div>implies (to me :-)) that there are likely tasks running and this
flag is being used to shut them down?</div>
  <div><br>
  </div>
  <div>self.master is presumably the widget derived from the 'standard'
line:</div>
  <div><br>
  </div>
  <div>root = Tk()</div>
  <div><br>
  </div>
  <div>that you normally find in a program? or is self.master some
other widget?</div>
  <div><br>
  </div>
  <div>Does the class that Quit is a method of inherit from something?</div>
  <div><br>
  </div>
  <div>It is pretty hard to work out (on the surface) why this method
won't work from the menu.</div>
  <div><br>
  </div>
  <div>Peter<br>
  <br>
  <div class="gmail_quote">On Fri, Feb 12, 2010 at 8:18 AM, Wayne
Watson <span dir="ltr">&lt;<a moz-do-not-send="true"
 href="mailto:sierra_mtnview@sbcglobal.net">sierra_mtnview@sbcglobal.net</a>&gt;</span>
wrote:<br>
  <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
    <div bgcolor="#ffffff" text="#000000">Just did now and the msg
showed up.
    <div>
    <div class="h5"><br>
    <br>
On 2/11/2010 10:54 AM, Peter Milliken wrote:
    <blockquote type="cite">Have you tried putting a print statement in
the Quit
method to determine if the correct quit is being called?<br>
      <br>
      <div class="gmail_quote">On Thu, Feb 11, 2010 at 10:14 AM, Wayne
Watson <span dir="ltr">&lt;<a moz-do-not-send="true"
 href="mailto:sierra_mtnview@sbcglobal.net" target="_blank">sierra_mtnview@sbcglobal.net</a>&gt;</span>
wrote:<br>
      <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I'm
looking
a
1800+ line someone else wrote. It uses one large dialog for
menus, and has a large area for images. A few menus open small dialogs,
for example, to enter a file name. The File menu has an exit choice.
The only other exit is the x in the upper right corner of the large
dialog. I'm pretty sure that menu is coded to quit via a short def in
the program.<br>
        <br>
def Quit(self)<br>
&nbsp; self.running = False<br>
&nbsp; self.master.quit()<br>
        <br>
I see no other code to quit. If I use Exit(menu item), the program does
not quit. If I then use the x, it quits and the shell script is left
open for a command. Any ideas why Quit doesn't work in the first case?
It's accessible &nbsp;via a<br>
self.mainMenu.add_command(.. command=self.Quit)<br>
I &nbsp;had not turned the program loose by using a menu or touching any
controls.<br>
        <br>
If I cause the program to print to the shell, and then use x to exit
that it hangs the shell. Why? When I x the shell, it tells me &nbsp;the prog
is running." Do I want to kill it?" Yes, kills the shell &nbsp;window.<br>
        <br>
The above seems abnormal to me. Comments?<br>
        <font color="#888888">-- <br>
"Crime is way down. War is declining. And that's far from the good
news." -- Steven Pinker (and other sources) Why is this true, but yet
the media says otherwise? The media knows very well how to manipulate
us (see limbic, emotion, $$). -- WTW<br>
_______________________________________________<br>
Tkinter-discuss mailing list<br>
        <a moz-do-not-send="true"
 href="mailto:Tkinter-discuss@python.org" target="_blank">Tkinter-discuss@python.org</a><br>
        <a moz-do-not-send="true"
 href="http://mail.python.org/mailman/listinfo/tkinter-discuss"
 target="_blank">http://mail.python.org/mailman/listinfo/tkinter-discuss</a><br>
        </font></blockquote>
      </div>
      <br>
    </blockquote>
    <br>
    <div>-- <br>
"Crime is way down. War is declining. And that's far from the good
news." -- Steven Pinker (and other sources)
Why is this true, but yet the media says otherwise? The media
knows very well how to manipulate us (see limbic, emotion, $$). -- WTW</div>
    </div>
    </div>
    </div>
  </blockquote>
  </div>
  <br>
  </div>
</blockquote>
<br>
<div class="moz-signature">-- <br>
"Crime is way down. War is declining. And that's far from the good
news." -- Steven Pinker (and other sources)
Why is this true, but yet the media says otherwise? The media
knows very well how to manipulate us (see limbic, emotion, $$). -- WTW</div>
</body>
</html>