New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tkinter askopenfilenames does not work in Windows library folder #63077
Comments
Using Python 3.3 on W7x64 I wanted to create a file dialog that allows me to select multiple files. # -- coding: iso-8859-15 -- import tkinter
import tkinter.filedialog
def callback():
name = tkinter.filedialog.askopenfilenames()
print(name)
tkinter.Button(text='File Open', command=callback).pack()
tkinter.mainloop() THE PROBLEM: Can anyone reproduce this behavior? |
There was a issue about people not being able to open windows 'library' files from Idle, but it was determined not to be an Idle problem. I cannot find it now. The outcome may have been that this was presumed to be a tk bug, but your report about the alternate dialog is interesting. it. |
I guess tkinter.wantobjects is 0 for you? |
This patch should fix the issue (as many other issues). |
Already applied in bpo-3015. |
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 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: 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: 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: |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: