Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.freenet.ag!news2.euro.net!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.025 X-Spam-Evidence: '*H*': 0.95; '*S*': 0.00; 'tkinter': 0.07; 'underscore': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; '1:08': 0.16; '__init__,': 0.16; 'received:74.55.86': 0.16; 'received:74.55.86.74': 0.16; 'received:smtp.webfaction.com': 0.16; 'received:webfaction.com': 0.16; 'subject:gui': 0.16; 'wrote:': 0.18; 'import': 0.22; 'cc:addr:python.org': 0.22; 'header:User-Agent:1': 0.23; 'copied': 0.24; 'cc:2**0': 0.24; 'cc:no real name:2**0': 0.24; 'daniel': 0.26; 'define': 0.26; 'header:In-Reply-To:1': 0.27; "i'm": 0.30; 'code': 0.31; 'helpful.': 0.31; 'class': 0.32; "i'd": 0.34; 'but': 0.35; 'idle': 0.36; 'being': 0.38; 'pm,': 0.38; 'does': 0.39; 'sure': 0.39; 'today,': 0.61; 'forward': 0.65; 'to:addr:gmail.com': 0.65; 'here': 0.66; 'sample': 0.67; 'home': 0.69; 'special': 0.74; 'day': 0.76; 'textbook': 0.84 Date: Wed, 24 Apr 2013 14:08:29 -0400 From: Ned Batchelder User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130328 Thunderbird/17.0.5 MIME-Version: 1.0 To: Daniel Kersgaard Subject: Re: My gui References: <09b96d6b-6db3-42a2-88d3-5fe16984fed1@googlegroups.com> In-Reply-To: <09b96d6b-6db3-42a2-88d3-5fe16984fed1@googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 15 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1366826929 news.xs4all.nl 15928 [2001:888:2000:d::a6]:57545 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:44282 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 does nothing. No error, no nothing. Any ideas? Here is the code from my program. I'm not sure if this is appropriate, but suggestions are helpful. > > import tkinter > import tkinter.messagebox > > class MyGui: > def_init_(self): You need to define __init__, not _init_. Python special methods are named with double underscore leading and trailing, and __x__ is pronounced "dunder-x". --Ned.