<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:
def __init__(self, master):
frame = Frame(master)
frame.pack()
self.button = Button(frame,
text="QUIT", fg="red", command=frame.quit)
self.button.pack(side=LEFT)
self.hi_there = Button(frame,
text="Hello", command=self.say_hi)
self.hi_there.pack(side=LEFT)
def say_hi(self):
print "hi there,
everyone!"
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> 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> </x-tab>Joseph.<br><br>
P.S 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>