Path: csiph.com!usenet.pasdenom.info!news.etla.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.154 X-Spam-Level: * X-Spam-Evidence: '*H*': 0.70; '*S*': 0.01; 'subject:: [': 0.04; 'answer?': 0.09; 'subject:modules': 0.09; 'subject:program': 0.16; 'demonstrate': 0.16; 'thursday,': 0.16; 'wrote:': 0.18; '(where': 0.19; 'subject:] ': 0.20; 'example': 0.22; 'header:In-Reply-To:1': 0.27; 'tried': 0.27; 'message-id:@mail.gmail.com': 0.30; 'code': 0.31; 'url:wiki': 0.31; 'url:wikipedia': 0.31; 'figure': 0.32; 'but': 0.35; 'received:google.com': 0.35; 'really': 0.36; 'method': 0.36; 'url:org': 0.36; 'seconds': 0.37; 'to:addr:python- list': 0.38; 'issue': 0.38; 'previous': 0.38; 'to:addr:python.org': 0.39; 'how': 0.40; 'read': 0.60; 'solve': 0.60; 'august': 0.61; 'took': 0.61; 'making': 0.63; 'more': 0.64; 'response.': 0.68; 'forums': 0.68; 'receive': 0.70; 'article': 0.77; 'you:': 0.81; 'yourself?': 0.84; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=u11+UCgK389vvlS6IMMxGyNdM5RlTUUcsRvbpHU1mlo=; b=eBN+wANASIbo8xQEfkxM0cjCo3UhP5N2FoTlVLok5FcY6cDB8tJva3kDVO+O/uSSvS 7cnHGzJ6HN8hCa0Hw0H8RCq6bA8wmhGtnYHbvNA7b/qNYapNXfPVgUNb8S+JNh5fnYT0 VIJM5bbh3XPFWs09h5WmfqCfL3prX/pWo81f4IA6fIUqEBp5R6pZxrt35UeG5JB6l2jK Ifk20xsGMJ2dLwNquRyfvqKpCrJmzZ9DD95Sbyb9ywpoxDc3Z2jNtOUSBhChjTH9mALQ Gi4w/ZxRy0fUQ3lYTwLiwKzhJ6/AQwFRPp+ROhZpYS8UchQIl+Ab7nKP/Z2Enmvzn5bE dGjQ== MIME-Version: 1.0 X-Received: by 10.58.96.76 with SMTP id dq12mr4910928veb.91.1376024572569; Thu, 08 Aug 2013 22:02:52 -0700 (PDT) In-Reply-To: <8039efc1-5fa1-46be-a834-46bd7981f7f5@googlegroups.com> References: <6f47e052-ec39-4894-a527-0d68653d5375@googlegroups.com> <5d739907-50ec-4691-a4a3-5c10f2b7cfe2@googlegroups.com> <8039efc1-5fa1-46be-a834-46bd7981f7f5@googlegroups.com> Date: Fri, 9 Aug 2013 15:02:52 +1000 Subject: Re: [tkinter] trouble running imported modules in main program From: David To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 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: 19 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1376024580 news.xs4all.nl 15893 [2001:888:2000:d::a6]:59759 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:52244 On 9 August 2013 14:28, snakeinmyboot wrote: > On Thursday, August 8, 2013 1:13:48 AM UTC-4, David wrote: >> On 8 August 2013 14:06, snakeinmyboot wrote: >> >> Did you try at all to find the answer to this yourself? >> >> I ask because it took me only a few seconds to go to wikipedia and >> search for "boilerplate" find this for you: >> >> http://en.wikipedia.org/wiki/Boilerplate_code >> >> Tip: To successfully use forums like this one (where a lot of very >> smart people read), the more care/effort/thought you demonstrate that >> you tried to solve your issue before asking, the more likely you are >> to receive a response. > > I did read that article but I couldnt really figure out how to apply it to the code he was giving as an example of making it "conditional". Did you try the research method I gave you in my previous answer?