Closed
Description
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).
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
Labels
No labels