Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > tkFileDialog Question

Thread Tools

tkFileDialog Question

Posts: n/a
tkFileDialog.askdirectory() allows the selection of a directory. In my code
it displays a line of text at the top of the frame ("Please choose a
directory, then select OK"). A little below that the current path
("C:\Documents and Settings\Owner\My Documents\Python\...") is displayed as
a string and immediately below that in a small frame the basename of the
path is displayed. In my case the string showing the path is too long and is
displayed on two lines, the bottom part of which is obscured by the frame
displaying the basename. The title text referred to above can be changed by
means of the title option in the function call but there doesn't appear to
be an option for the path. Is there some other way the display of the path
or the frame displaying the basename could be eliminated or moved slightly?

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
tkFileDialog question Matt Mitchell Python 4 11-16-2009 06:30 PM
RE: tkFileDialog question Matt Mitchell Python 1 11-14-2009 02:33 AM
tkFileDialog, askopenfiles in v2.6 question fransstil Python 1 11-27-2008 12:09 AM
tkFileDialog question Python 3 05-13-2005 05:07 PM
tkFileDialog without a parent window Stephen Boulet Python 2 07-20-2003 01:41 AM