Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!news.stack.nl!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.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'received:verizon.net': 0.07; 'subject:when': 0.07; 'terry': 0.07; 'version?': 0.07; '"hello': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'underscores': 0.09; 'braces?': 0.16; 'expected,': 0.16; 'reedy': 0.16; 'subject:() ': 0.16; 'subject:GUI': 0.16; 'subject:app': 0.16; 'subject:writing': 0.16; 'wrote:': 0.18; 'jan': 0.19; 'seems': 0.20; 'header:In-Reply-To:1': 0.22; 'feb': 0.22; 'end,': 0.23; 'happening': 0.24; 'saying': 0.26; 'problem': 0.29; 'pm,': 0.29; 'subject:?': 0.31; 'minor': 0.32; 'there': 0.33; 'header :User-Agent:1': 0.33; 'instead': 0.33; 'header:X-Complaints-To:1': 0.34; 'to:addr:python-list': 0.35; 'skip:" 20': 0.35; 'received:org': 0.36; 'instead,': 0.37; 'but': 0.37; 'subject:with': 0.37; 'johnson': 0.39; 'change': 0.40; 'to:addr:python.org': 0.40; 'your': 0.61; 'world': 0.61; '29,': 0.73; 'spaces': 0.73; '11:24': 0.84; 'subject:necessary': 0.84 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Terry Reedy Subject: Re: Is it necessary to call Tk() when writing a GUI app with Tkinter? Date: Thu, 01 Mar 2012 22:43:22 -0500 References: <27603449.17.1330492001624.JavaMail.geo-discussion-forums@vbbfv2> <6e1c521e-14be-4ec0-9ff0-7f23fd9cd3dc@f14g2000yqe.googlegroups.com> <3d0bf288-fa5d-48e5-9529-db92d420a915@1g2000yqv.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: pool-74-109-121-73.phlapa.fios.verizon.net User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20111105 Thunderbird/8.0 In-Reply-To: <3d0bf288-fa5d-48e5-9529-db92d420a915@1g2000yqv.googlegroups.com> 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: 28 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1330659825 news.xs4all.nl 6941 [2001:888:2000:d::a6]:38204 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:21111 On 3/1/2012 9:49 PM, Rick Johnson wrote: > On Feb 29, 11:24 pm, Terry Reedy wrote: >> There is a minor problem left. The hi_there Button text has underscores >> because if I use spaces instead, tk surrounds the text with {bra ces}. >> This seems bizarre. Is there any way to have Button text with spaces and >> no braces? > > Not sure what is happening on your end, but i don't see any braces. Are you saying that if you change "Hello_World\n(click_me)" to "Hello World\n(click me)", you see Hello World (click me) as I expected, instead of {Hellow World (click me)} as I do see? What OS are you running? And what tk version? (I have 8.5.9 in Win7) -- Terry Jan Reedy