Skip to content

Paths issues in wx.lib.agw.multidirdialog #2120

Closed
@cipriantrofin

Description

@cipriantrofin

Operating system: Windows 10, x64
wxPython version & source: 4.1.1 msw (phoenix) wxWidgets 3.1.5, pip
Python version & source: Python 3.8.5 (tags/v3.8.5:580fbb0, Jul 20 2020, 15:57:54) [MSC v.1924 64 bit (AMD64)] on win32, stock

Description of the problem:
wx.lib.agw.multidirdialog returns bad paths.
I run the code below and before submiting the OK button I get the screen like the screeenshot below.

The problem is: the code returns Disc local (E:)\Proiecte PY; I was expecting something like E:\Proiecte PY (a valid path).

screenshot

Code Example (click to expand)
import os
import wx
import wx.lib.agw.multidirdialog as MDD

app = wx.App(0)
dlg = MDD.MultiDirDialog(None, defaultPath = os.getcwd(), agwStyle=MDD.DD_DIR_MUST_EXIST)

if dlg.ShowModal() != wx.ID_OK:
    dlg.Destroy()


paths = dlg.GetPaths()
print (paths[0])
dlg.Destroy()

app.MainLoop()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions