Message79936
| Author |
kvutza |
| Recipients |
kvutza, loewis |
| Date |
2009年01月16日.06:56:13 |
| SpamBayes Score |
0.00057402847 |
| Marked as misclassified |
No |
| Message-id |
<1232088975.15.0.173664282718.issue4960@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2009年01月16日 06:56:15 | kvutza | set | recipients:
+ kvutza, loewis |
| 2009年01月16日 06:56:15 | kvutza | set | messageid: <1232088975.15.0.173664282718.issue4960@psf.upfronthosting.co.za> |
| 2009年01月16日 06:56:14 | kvutza | link | issue4960 messages |
| 2009年01月16日 06:56:13 | kvutza | create |
|