Path: csiph.com!feeder.erje.net!2.eu.feeder.erje.net!border1.nntp.ams1.giganews.com!nntp.giganews.com!newsreader4.netcologne.de!news.netcologne.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Peter Pearson Newsgroups: comp.lang.python Subject: Re: [newbie] tkFileDialog does not show title Date: 28 Mar 2016 22:29:14 GMT Lines: 20 Message-ID: References: <968ddc19-1944-4ec8-975b-ec88e4391361@googlegroups.com> X-Trace: individual.net Z4hxJEx1PxQaeg5JePFZgggQBZHLTUDCOOnPZgzQ3mWNhlhMgd Cancel-Lock: sha1:jQ6QzsEwo9olVDfhU/poxeBJzeY= User-Agent: slrn/pre1.0.0-18 (Linux) Xref: csiph.com comp.lang.python:105931 On Mon, 28 Mar 2016 14:10:28 -0700 (PDT), jenswaelkens@gmail.com wrote: > 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? On my system (Linux, Python 2.7.3), "Select input file" appears as the title of the choose-a-file popup window -- that is, it appears on the window's title bar, along with the maximize, minimize, and close buttons. Is that not what you wanted? -- To email me, substitute nowhere->runbox, invalid->com.