Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!selfless.tophat.at!newsfeed.xs4all.nl!newsfeed6.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; '(except': 0.05; 'tkinter': 0.09; 'top-level': 0.09; 'window?': 0.09; 'programmer': 0.11; 'gui': 0.13; 'received:209.85.214.174': 0.13; 'received:mail- iw0-f174.google.com': 0.13; 'wrote:': 0.15; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'rantingrick': 0.16; 'screen,': 0.16; 'tkinter,': 0.16; 'mon,': 0.16; 'pm,': 0.16; 'header:In-Reply-To:1': 0.22; 'gregory': 0.23; 'creating': 0.24; 'libraries': 0.25; 'represents': 0.25; 'windows': 0.26; 'received:209.85.214': 0.28; 'message-id:@mail.gmail.com': 0.28; 'forgot': 0.29; "he's": 0.29; 'problem': 0.29; 'code,': 0.29; 'example': 0.30; 'ewing': 0.30; 'toolkit': 0.30; 'developers': 0.32; 'chris': 0.32; 'to:addr:python-list': 0.34; 'creates': 0.34; 'all.': 0.35; 'equal': 0.35; 'but': 0.37; 'received:google.com': 0.38; 'received:209.85': 0.38; 'subject:: ': 0.38; 'platform': 0.38; 'should': 0.39; 'unlike': 0.39; 'basic': 0.39; 'to:addr:python.org': 0.39; 'received:209': 0.40; 'kindly': 0.65; 'here': 0.66; 'subject:!': 0.67; 'nothing.': 0.67; 'concept': 0.73; '"just': 0.84; 'packing': 0.84; 'sprang': 0.84; 'thing).': 0.84; 'window"': 0.84; 'window,': 0.84; 'means?': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=TrqzVd3fTwCoHd2+VI2QLbtTHIMZAqMObf8iRK6Moyc=; b=rf9aGqnkJror8Rh1rslPl0QeuykRy0pNNjw/iOLQVBWCgEipSJs0zrJpg/S9PuoUp3 qVysuV2HTpry352OXk/4nnpmRjPa4JDPZ22Lq/Cf2FiUHTdHQSdCoIR/vlGWqaHc+bjd nkgFgyDKFOtjD3ee2HCfvFaEL7vC882QzgfhY= MIME-Version: 1.0 In-Reply-To: <97dc7iF9eiU1@mid.individual.net> References: <97dc7iF9eiU1@mid.individual.net> Date: Mon, 4 Jul 2011 18:44:48 +1000 Subject: Re: Implicit initialization is EVIL! From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 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: 20 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1309769091 news.xs4all.nl 21838 [2001:888:2000:d::a6]:60350 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:8762 On Mon, Jul 4, 2011 at 6:33 PM, Gregory Ewing wrote: > rantingrick wrote: > >> Unlike most GUI libraries the Tkinter developers thought is would >> "just wonderful" if the root GUI window just sprang into existence if >> the programmer "somehow" forgot to create one. > > IMO the real problem here is the existence of a privileged > "root" window at all. No GUI platform I know of has any > such concept (except for a "desktop" window that represents > the whole screen, which is not the same thing). All top-level > windows should have equal status. I don't know Tkinter, but from the look of the example code, he's creating a Label that's not attached to a window, and then packing it into nothing. The toolkit kindly creates him a window. Is that the "root GUI window" that he means? A basic top-level window? Chris Angelico