This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
Created on 2009年01月16日 06:29 by kvutza, last changed 2022年04月11日 14:56 by admin. This issue is now closed.
| Messages (4) | |||
|---|---|---|---|
| msg79934 - (view) | Author: Martin Saturka (kvutza) | Date: 2009年01月16日 06:29 | |
Directory selection from Tkinter part of Python 3.0, i.e. "askdirectory" function from tkinter.filedialog does not work. It works for 2.x Python, other Tkinter functions (askopenfilename, asksaveasfilename) work well at both 2.x and 3.0 versions. |
|||
| msg79935 - (view) | Author: Martin v. Löwis (loewis) * (Python committer) | Date: 2009年01月16日 06:41 | |
Please be more explicit: what does "not work" mean? What do you do, what happens, what do you expect to happen instead? |
|||
| msg79936 - (view) | Author: Martin Saturka (kvutza) | Date: 2009年01月16日 06:56 | |
When I do in Python 2.x (e.g. 2.6) next: ---------------------------- import Tkinter as T import tkFileDialog as F t = T.Tk() dn = F.askdirectory() ---------------------------- It pop-ups the dialog, it is OK. Analogical case for Python 3.0 does not work, at least on my Linux box: ---------------------------- import tkinter as T import tkinter.filedialog as F t = T.Tk() dn = F.askdirectory() ---------------------------- It just writes an error message below: ---------------------------- Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/local/lib/python3.0/tkinter/filedialog.py", line 430, in askdirectory return Directory(**options).show() File "/usr/local/lib/python3.0/tkinter/dialog.py", line 20, in __init__ cnf['title'], cnf['text'], KeyError: 'title' ---------------------------- When I had tried to put there all the parameters it was asking for, it just put some nonsense window. |
|||
| msg79937 - (view) | Author: Martin v. Löwis (loewis) * (Python committer) | Date: 2009年01月16日 07:05 | |
Ah. That's a duplicate of issue 4406. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:56:44 | admin | set | github: 49210 |
| 2009年01月16日 07:05:47 | loewis | set | status: open -> closed resolution: duplicate superseder: In Lib\tkinter\filedialog.py, class Directory define loss a"_" messages: + msg79937 |
| 2009年01月16日 06:56:14 | kvutza | set | messages: + msg79936 |
| 2009年01月16日 06:41:19 | loewis | set | nosy:
+ loewis messages: + msg79935 |
| 2009年01月16日 06:29:07 | kvutza | create | |