<html>
<body>
Catherine<br><br>
I'm a Python newbie too but have done some programming with C++ Builder
so have a little knowledge of GUIs etc<br><br>
Best regards<br><br>
Alun<br><br>
<br>
At 22:41 26/01/2006, catherine curley wrote:<br>
<blockquote type=cite class=cite cite="">Alan<br>
<br>
As a matter of interest, did you have much knowledge of Python before you
tried TKinter? I'm only a python beginner at present.<br>
<br>
Catherine<br><br>
<br>
On 1/26/06,
<a href="mailto:etrade.griffiths@dsl.pipex.com"><b>etrade.griffiths@dsl.pipex.com</a></b>
<<a href="mailto:etrade.griffiths@dsl.pipex.com">etrade.griffiths@dsl.pipex.com </a>> wrote: <br>
<dl>
<dd>Hi!<br><br>
<dd>Just started trying to get to grips with Python and Tkinter. Have Frederick<br>
<dd>Lundh's tutorial and am on program hello2.py which looks like this<br><br>
<dd># File: hello2.py<br><br>
<dd>from Tkinter import *<br><br>
<dd>class App:<br><br>
<dd> def __init__(self, master):<br><br>
<dd> frame = Frame(master)<br>
<dd> frame.pack()<br><br>
<dd> self.button = Button(frame, text="QUIT", fg="red", command=frame.quit)<br>
<dd> self.button.pack(side=LEFT)<br><br>
<dd> self.hi_there = Button(frame, text="Hello", command=self.say_hi)<br>
<dd> self.hi_there.pack (side=LEFT)<br><br>
<dd> def say_hi(self):<br>
<dd> print "hi there, everyone!"<br><br>
<dd>root = Tk()<br><br>
<dd>app = App(root)<br><br>
<dd>root.mainloop()<br><br>
<dd>I am running from inside Pythonwin 2.4 IDE under XP Pro and every time I run <br>
<dd>hello2.py it freezes when I press "QUIT". The only way to kill it is through<br>
<dd>Alt-Ctrl-Del but this crashes Pythonwin. Any workaround for this so that I<br>
<dd>can use Tkinter from inside the IDE? BTW the same thing happend with IDLE <br><br>
<dd>Thanks in advance<br><br>
<dd>Alun Griffiths<br>
<dd>_______________________________________________<br>
<dd>Tutor maillist - <a href="mailto:Tutor@python.org">Tutor@python.org</a><br>
<dd><a href="http://mail.python.org/mailman/listinfo/tutor">http://mail.python.org/mailman/listinfo/tutor</a><br><br>
</dl></blockquote></body>
</html>