Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #105953

Re: [newbie] tkFileDialog does not show title

Newsgroups comp.lang.python
Date 2016-03-28 23:47 -0700
References <968ddc19-1944-4ec8-975b-ec88e4391361@googlegroups.com> <dltphqF99v5U2@mid.individual.net>
Message-ID <8dbb835a-6ae7-43cc-a721-0df7a6338403@googlegroups.com> (permalink)
Subject Re: [newbie] tkFileDialog does not show title
From jenswaelkens@gmail.com

Show all headers | View raw


Op dinsdag 29 maart 2016 00:29:29 UTC+2 schreef Peter Pearson:
> 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.

Thanks Peter and Wildman for trying this out on your systems. Now I know at least the code is correct but the fact that nothing is displayed on my desktop has probably to do with some setting of the LXDE-desktop I'm using. I will investigate this further.

kind regards,
jens

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[newbie] tkFileDialog does not show title jenswaelkens@gmail.com - 2016-03-28 14:10 -0700
  Re: [newbie] tkFileDialog does not show title Wildman <best_lay@yahoo.com> - 2016-03-28 17:14 -0500
  Re: [newbie] tkFileDialog does not show title Peter Pearson <pkpearson@nowhere.invalid> - 2016-03-28 22:29 +0000
    Re: [newbie] tkFileDialog does not show title jenswaelkens@gmail.com - 2016-03-28 23:47 -0700
      Re: [newbie] tkFileDialog does not show title Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2016-03-29 09:13 -0400
  Re: [newbie] tkFileDialog does not show title Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2016-03-28 20:57 -0400

csiph-web