Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed3a.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.006 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:into': 0.09; 'def': 0.12; 'wrote': 0.14; 'windows': 0.15; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'subject:Tkinter': 0.16; 'code.': 0.18; 'this:': 0.26; 'header:X-Complaints-To:1': 0.27; 'function': 0.29; 'code': 0.31; 'another': 0.32; 'done.': 0.35; 'false': 0.36; 'possible': 0.36; 'question,': 0.38; 'window': 0.38; 'to:addr:python-list': 0.38; 'itself': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'up,': 0.60; 'till': 0.61 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Dave Angel Subject: Re: Tkinter widgets into classes. Date: Sat, 1 Feb 2014 16:52:51 -0500 (EST) Organization: news.gmane.org References: <5e297400-3322-45aa-ab7e-016af083b259@googlegroups.com> <04a9d0b0-c968-42c2-94d2-93438558e227@googlegroups.com> X-Gmane-NNTP-Posting-Host: dpc6744192077.direcpc.com X-Newsreader: PiaoHong Usenet NewsReaders 1.36 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: 17 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1391291392 news.xs4all.nl 2869 [2001:888:2000:d::a6]:49536 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:65238 Lewis Wood Wrote in message: > Oh and another question, say I make another window in the program itself using this: > > def secondwindow(): > root2=Tk() > root2.mainloop() > > Would it be possible for me to use some code which would return True if one of these windows is currently up, or return False if the window is not up? > No need. Only one at a time can be running, and you won't return from this function till it's done. To put it another way, you only want one mainloop in your code. -- DaveA