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

handle input pathlib.Path for path variables #2560

Open
carandraug opened this issue Jun 13, 2024 · 0 comments
Open

handle input pathlib.Path for path variables #2560

carandraug opened this issue Jun 13, 2024 · 0 comments

Comments

@carandraug
Copy link
Contributor

Operating system: GNU/Linux Debian 11
wxPython version & source: 4.2.2 from pypi
Python version & source: distro

Description of the problem:

Would be nice if wxPython could handle pathlib.Path automatically at least as input. For example:

dialog = wx.FileDialog(None,style = wx.FD_SAVE,defaultDir=pathlib.Path("."))
Traceback (most recent call last):
  File "<input>", line 1, in <module>
TypeError: FileDialog(): argument 'defaultDir' has unexpected type 'PosixPath'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant