Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #105924 > unrolled thread
| Started by | jenswaelkens@gmail.com |
|---|---|
| First post | 2016-03-28 14:10 -0700 |
| Last post | 2016-03-28 20:57 -0400 |
| Articles | 6 — 4 participants |
Back to article view | Back to comp.lang.python
[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
| From | jenswaelkens@gmail.com |
|---|---|
| Date | 2016-03-28 14:10 -0700 |
| Subject | [newbie] tkFileDialog does not show title |
| Message-ID | <968ddc19-1944-4ec8-975b-ec88e4391361@googlegroups.com> |
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?
kind regards,
Jens
[toc] | [next] | [standalone]
| From | Wildman <best_lay@yahoo.com> |
|---|---|
| Date | 2016-03-28 17:14 -0500 |
| Message-ID | <UPmdnSluwNVRMWTLnZ2dnUU7-eXNnZ2d@giganews.com> |
| In reply to | #105924 |
On Mon, 28 Mar 2016 14:10:28 -0700, jenswaelkens 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?
>
> kind regards,
> Jens
I copied and pasted your code into a test script and it worked
perfectly as it is. Sorry but I don't have clue as where to look
for the problem. Does text show elsewhere in your program such
as the main window titlebar, labels or buttons? I'm thinking
maybe something to do with font or foreground color. I'm just
guessing here...
--
<Wildman> GNU/Linux user #557453
May the Source be with you.
[toc] | [prev] | [next] | [standalone]
| From | Peter Pearson <pkpearson@nowhere.invalid> |
|---|---|
| Date | 2016-03-28 22:29 +0000 |
| Message-ID | <dltphqF99v5U2@mid.individual.net> |
| In reply to | #105924 |
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.
[toc] | [prev] | [next] | [standalone]
| From | jenswaelkens@gmail.com |
|---|---|
| Date | 2016-03-28 23:47 -0700 |
| Message-ID | <8dbb835a-6ae7-43cc-a721-0df7a6338403@googlegroups.com> |
| In reply to | #105931 |
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
[toc] | [prev] | [next] | [standalone]
| From | Dennis Lee Bieber <wlfraed@ix.netcom.com> |
|---|---|
| Date | 2016-03-29 09:13 -0400 |
| Message-ID | <mailman.150.1459257209.28225.python-list@python.org> |
| In reply to | #105953 |
On Mon, 28 Mar 2016 23:47:15 -0700 (PDT), jenswaelkens@gmail.com declaimed
the following:
>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.
>
I had to install python-tk on my BeagleBone Black (Wheezy), but once
there the test program showed the title string centered on top of the
window.
However, I now have to figure out just what is running -- I can get
console windows and a browser using right-click menu, but it seems the
November OS build no longer has an icon bar at the bottom of the screen.
--
Wulfraed Dennis Lee Bieber AF6VN
wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/
[toc] | [prev] | [next] | [standalone]
| From | Dennis Lee Bieber <wlfraed@ix.netcom.com> |
|---|---|
| Date | 2016-03-28 20:57 -0400 |
| Message-ID | <mailman.123.1459213086.28225.python-list@python.org> |
| In reply to | #105924 |
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 <G>)
Now to figure out how to get rid of the empty "tk" window <G> (Ah,
needed to kill PythonWin)
--
Wulfraed Dennis Lee Bieber AF6VN
wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web