<html>
<body>
Hi, <br>
It seems that whenever I click the QUIT button the TK windows freezes,
then I have to CTRL-ALT-DEL to be able to shut it down. Here's the code
(its not mine though):<br><br>
<br><br>
<pre>from Tkinter import *

class App:

&nbsp;&nbsp;&nbsp; def __init__(self, master):

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; frame = Frame(master)
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; frame.pack()

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; self.button = Button(frame,
text=&quot;QUIT&quot;, fg=&quot;red&quot;, command=frame.quit)
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; self.button.pack(side=LEFT)

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; self.hi_there = Button(frame,
text=&quot;Hello&quot;, command=self.say_hi)
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
self.hi_there.pack(side=LEFT)

&nbsp;&nbsp;&nbsp; def say_hi(self):
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; print &quot;hi there,
everyone!&quot;

root = Tk()

app = App(root)

root.mainloop()


</pre>It's probably the <br>
<pre>command=frame.quit

</pre>Is there another command to close the Tk program? (like raise
<font face="Courier New, Courier"> SystemExit</font> and
<font face="Courier New, Courier">sys.exit()</font>&nbsp; for the text
based programs)<br><br>
Also could I do something like <font face="Courier New, Courier">root and
tk = Tk()</font>?<br><br>
Thanks,<br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>Joseph.<br><br>
P.S&nbsp; I'm currently looking for an dedicated python IDE (or IDLE, i
never can tell the difference between the two)<br>
for Linux. I know about emacs and vi (or vim) (but they're not
dedicated). I was wondering if any of you know of any. </body>
</html>