Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Dennis Lee Bieber Newsgroups: comp.lang.python Subject: Re: [newbie] tkFileDialog does not show title Date: Mon, 28 Mar 2016 20:57:55 -0400 Organization: IISS Elusive Unicorn Lines: 21 Message-ID: References: <968ddc19-1944-4ec8-975b-ec88e4391361@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de 9NrW9K8A6GDzQC33jUIxBgfVpOR4c9dPoOOwRK0Z/3Og== 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; 'subject:: [': 0.03; 'message-id:@4ax.com': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'python': 0.10; 'subject:not': 0.11; '2016': 0.16; 'pythonwin': 0.16; 'received:80.91.229.3': 0.16; 'received:io': 0.16; 'received:plane.gmane.org': 0.16; 'received:psf.io': 0.16; 'subject:show': 0.16; 'subject:tkFileDialog': 0.16; 'title?': 0.16; 'url:home': 0.18; 'input': 0.18; 'subject:] ': 0.19; 'rid': 0.22; 'title,': 0.22; 'mon,': 0.24; 'header:X-Complaints-To:1': 0.26; 'figure': 0.27; 'fine': 0.28; 'code:': 0.29; 'too.': 0.30; 'window': 0.30; 'anyone': 0.32; '-0700': 0.33; 'displayed': 0.33; 'file': 0.34; 'except': 0.34; 'this?': 0.34; 'add': 0.34; 'next': 0.35; 'text': 0.35; 'i.e.': 0.35; 'expected': 0.35; "isn't": 0.35; 'but': 0.36; 'needed': 0.36; 'to:addr:python-list': 0.36; 'received:org': 0.37; 'charset:us-ascii': 0.37; 'to:addr:python.org': 0.40; 'where': 0.40; 'email addr:gmail.com': 0.62; 'mar': 0.65; 'here': 0.66; 'dennis': 0.91 X-Injected-Via-Gmane: http://gmane.org/ X-Gmane-NNTP-Posting-Host: adsl-108-79-217-212.dsl.klmzmi.sbcglobal.net X-Newsreader: Forte Agent 6.00/32.1186 X-No-Archive: YES X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:105939 On Mon, 28 Mar 2016 14:10:28 -0700 (PDT), jenswaelkens@gmail.com declaimed the following: >I'm using the tkFileDialog-module in Python 2.7, it works fine except for one thing: when I add a title, the title isn't shown. > >e.g. I have this line of code: >inputfilename=tkFileDialog.askopenfilename(defaultextension=".dat", filetypes=(("data file", "*.dat"),("All Files", "*.*") ),title='Select input file') > >this works fine i.e. the file selector menu opens but I expected that the text >'Select input file' would be displayed too. Can anyone here explain me how I can achieve this? > Where did you look for the title? Shows up next to the Tk logo at the top of the window here (Win7 -- and I even started it from inside of PythonWin ) Now to figure out how to get rid of the empty "tk" window (Ah, needed to kill PythonWin) -- Wulfraed Dennis Lee Bieber AF6VN wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/