Re: My gui

2013-04-24 Thread Chris Angelico
On Thu, Apr 25, 2013 at 3:08 AM, Daniel Kersgaard wrote: > import tkinter > import tkinter.messagebox > > class MyGui: > def _init_(self): > ... all code here > > poop = MyGui() As already mentioned, changing that to __init__ makes everything work (I just tested in Python 3.3 on Windows). But

Re: My gui

2013-04-24 Thread Terry Jan Reedy
On 4/24/2013 1:53 PM, Chris “Kwpolska” Warrick wrote: Please try fixing it and running it _outside of IDLE_, which is also built in Tk The default mode of Idle runs user code in a separate process. Editing tkinter code with Idle and running it (in the separate process) should be no problem.

Re: My gui

2013-04-24 Thread Neil Cerutti
On 2013-04-24, Arnaud Delobelle wrote: > His class is not a frame, it's just a container for the tkinter > code. It's a bit unusual but it looks correct to me (apart from > the single underscores in __init__() as spotted by Ned > Batchelder). I dunno if it makes any difference, but it's usual to

Re: My gui

2013-04-24 Thread Arnaud Delobelle
On 24 April 2013 18:53, Chris “Kwpolska” Warrick wrote: > On Wed, Apr 24, 2013 at 7:08 PM, Daniel Kersgaard > wrote: >> Today, being the last day of lectures at school, my instructor ran briefly >> through Tkninter and GUIs. I'd been looking forward to this particular >> lesson all semester, bu

Re: My gui

2013-04-24 Thread Ned Batchelder
On 4/24/2013 1:08 PM, Daniel Kersgaard wrote: Today, being the last day of lectures at school, my instructor ran briefly through Tkninter and GUIs. I'd been looking forward to this particular lesson all semester, but when I got home and copied a sample program from my textbook verbatim, IDLE

Re: My gui

2013-04-24 Thread Chris “Kwpolska” Warrick
On Wed, Apr 24, 2013 at 7:08 PM, Daniel Kersgaard wrote: > Today, being the last day of lectures at school, my instructor ran briefly > through Tkninter and GUIs. I'd been looking forward to this particular lesson > all semester, but when I got home and copied a sample program from my > textboo

Re: My gui

2013-04-24 Thread Dave Angel
On 04/24/2013 01:08 PM, Daniel Kersgaard wrote: Today, being the last day of lectures at school, my instructor ran briefly through Tkninter and GUIs. I'd been looking forward to this particular lesson all semester, but when I got home and copied a sample program from my textbook verbatim, IDLE