(pg 276 ff) and it looks to me like the code below should:
(a) put a window on screen with a Quit button under
(b) quit that window when Quit button is pressed
drawgraph() is in a module, and I'm launching it from
So the window pops up. When I hit Quit, I get the
in the IDLE Window, but the 400x400 canvas is still
topmost -- didn't go away. I have to hit the close
box (X in upper right corner) to kill the Window.
This doesn't seem to be the behavior documented in
Tkinter class, which says quit method will cause all
widgets to be destroyed.
Whether documented or not, my question is, how to I
make the Quit button both return to IDLE _and_
get rid of the window.
# simple graphing -- tkgraph.py
# doesn't actually graph anything yet -- just testing
# window behavior
from Tkinter import *
root = Tk()
canvas = Canvas(root,height@0,width@0, bg='white')