<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>
&nbsp;<br>
As a matter of interest, did you have much knowledge of Python before you
tried TKinter?&nbsp; I'm only a python beginner at present.<br>
&nbsp;<br>
Catherine<br><br>
&nbsp;<br>
On 1/26/06,
<a href="mailto:etrade.griffiths@dsl.pipex.com"><b>etrade.griffiths@dsl.pipex.com</a></b>
&lt;<a href="mailto:etrade.griffiths@dsl.pipex.com">etrade.griffiths@dsl.pipex.com </a>&gt; wrote: <br>

<dl>
<dd>Hi!<br><br>

<dd>Just started trying to get to grips with Python and Tkinter.&nbsp; 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>&nbsp;&nbsp; def __init__(self, master):<br><br>

<dd>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; frame = Frame(master)<br>

<dd>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; frame.pack()<br><br>

<dd>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; self.button = Button(frame, text=&quot;QUIT&quot;, fg=&quot;red&quot;, command=frame.quit)<br>

<dd>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; self.button.pack(side=LEFT)<br><br>

<dd>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; self.hi_there = Button(frame, text=&quot;Hello&quot;, command=self.say_hi)<br>

<dd>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; self.hi_there.pack (side=LEFT)<br><br>

<dd>&nbsp;&nbsp; def say_hi(self):<br>

<dd>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; print &quot;hi there, everyone!&quot;<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 &quot;QUIT&quot;.&nbsp; The only way to kill it is through<br>

<dd>Alt-Ctrl-Del but this crashes Pythonwin.&nbsp; Any workaround for this so that I<br>

<dd>can use Tkinter from inside the IDE?&nbsp; BTW the same thing happend with IDLE <br><br>

<dd>Thanks in advance<br><br>

<dd>Alun Griffiths<br>

<dd>_______________________________________________<br>

<dd>Tutor maillist&nbsp; -&nbsp; <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>