[issue18877] tkinter askopenfilenames does not work in Windows library folder

AJNeufeld report at bugs.python.org
Tue May 13 22:32:56 CEST 2014


AJNeufeld added the comment:

I'd like this issue to be reopened.  It does not appear resolved.  It is different from the wantobjects=False issue.

Windows 7 has 'libraries' which are folders containing the contents of more than one folder.  For instance, on my computer
   > Libraries > Documents
presents the contents of the following 2 folders simultaneously:
   C:\Users\aneufeld\Documents
   C:\Users\Public\Documents

If you execute the script listed in the original bug report, press the [File Open] button, press "Libraries" from the left bar, double click "Documents" in the main area, and select one or more *FILES* in the displayed list of files, I get back:
   ('',)

On the other hand, if I press "Computer" on the left bar, and navigate through "C:", "Users", "aneufeld", "My Documents", and select the SAME FILES, I get back:
   ('C:/Users/aneufeld/Documents/timelog.txt', 'C:/Users/aneufeld/Documents/notes.txt')

>From the "> Libraries > Documents" folder, if you navigate into any real folder, the problem goes away.  For example, with the folder ATS in My Documents, press the [File Open] button, press "Libraries" from the left bar, double click "Documents" in the main area, double click ATS, and select the two files, I get:
   ('C:/Users/aneufeld/Documents/ATS/readme.txt', 'C:/Users/aneufeld/Documents/ATS/Changes.txt')

The issue is, when the file "Foo.txt" is selected in a Library folder, such as "Documents", the dialog does not know if that file should be:
   C:/Users/aneufeld/Documents/Foo.txt
or
   C:/Users/Public/Documents/Foo.txt
and returns a null string for the filename.

----------
nosy: +AJNeufeld

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18877>
_______________________________________


More information about the Python-bugs-list mailing list