Skip to content
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

askdirectory from tkinter.filedialog does not work #49210

Closed
kvutza mannequin opened this issue Jan 16, 2009 · 4 comments
Closed

askdirectory from tkinter.filedialog does not work #49210

kvutza mannequin opened this issue Jan 16, 2009 · 4 comments
Labels
topic-tkinter type-bug An unexpected behavior, bug, or error

Comments

@kvutza
Copy link
Mannequin

kvutza mannequin commented Jan 16, 2009

BPO 4960
Nosy @loewis
Superseder
  • bpo-4406: In Lib\tkinter\filedialog.py, class Directory define loss a"_"
  • 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:

    assignee = None
    closed_at = <Date 2009-01-16.07:05:47.957>
    created_at = <Date 2009-01-16.06:29:07.058>
    labels = ['type-bug', 'expert-tkinter']
    title = 'askdirectory from tkinter.filedialog does not work'
    updated_at = <Date 2009-01-16.07:05:47.935>
    user = 'https://bugs.python.org/kvutza'

    bugs.python.org fields:

    activity = <Date 2009-01-16.07:05:47.935>
    actor = 'loewis'
    assignee = 'none'
    closed = True
    closed_date = <Date 2009-01-16.07:05:47.957>
    closer = 'loewis'
    components = ['Tkinter']
    creation = <Date 2009-01-16.06:29:07.058>
    creator = 'kvutza'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 4960
    keywords = []
    message_count = 4.0
    messages = ['79934', '79935', '79936', '79937']
    nosy_count = 2.0
    nosy_names = ['loewis', 'kvutza']
    pr_nums = []
    priority = 'normal'
    resolution = 'duplicate'
    stage = None
    status = 'closed'
    superseder = '4406'
    type = 'behavior'
    url = 'https://bugs.python.org/issue4960'
    versions = ['Python 3.0']

    @kvutza
    Copy link
    Mannequin Author

    kvutza mannequin commented Jan 16, 2009

    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.

    @kvutza kvutza mannequin added topic-tkinter type-bug An unexpected behavior, bug, or error labels Jan 16, 2009
    @loewis
    Copy link
    Mannequin

    loewis mannequin commented Jan 16, 2009

    Please be more explicit: what does "not work" mean? What do you do, what
    happens, what do you expect to happen instead?

    @kvutza
    Copy link
    Mannequin Author

    kvutza mannequin commented Jan 16, 2009

    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.

    @loewis
    Copy link
    Mannequin

    loewis mannequin commented Jan 16, 2009

    Ah. That's a duplicate of bpo-4406.

    @loewis loewis mannequin closed this as completed Jan 16, 2009
    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    topic-tkinter type-bug An unexpected behavior, bug, or error
    Projects
    None yet
    Development

    No branches or pull requests

    0 participants