From 7d81342edc868db1841174a706800e8456e2a391 Mon Sep 17 00:00:00 2001 From: JFoederer <32476108+JFoederer@users.noreply.github.com> Date: Sat, 8 Aug 2026 12:58:43 +0200 Subject: [PATCH 1/3] fix open dir for wxpython 4.3 --- pyproject.toml | 10 ++++------ src/robotide/ui/mainframe.py | 2 +- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 55bb7f205..8fa9ed474 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -17,7 +17,7 @@ Project: https://github.com/robotframework/RIDE#readme long_description_content_type = "text/x-rst" license = "Apache-2.0" license-files = { paths = ["LICENSE.txt"] } -requires-python = ">=3.9, <3.15" +requires-python = ">=3.10, <3.15" authors = [ { name = "Robot Framework Developers", email = "robotframework@gmail.com" }, ] @@ -35,7 +35,6 @@ classifiers = [ "Development Status :: 5 - Production/Stable", "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", - "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", @@ -49,11 +48,10 @@ dependencies = [ "Pygments>=2.20.0", "PyPubSub", "Pywin32; platform_system == 'Windows'", - "wxPython", + "wxPython>=4.3.0", "robotframework", "psutil", "packaging", - "requests==2.32.5; python_version < '3.10'", "requests>=2.33.0; python_version >= '3.10'" ] @@ -109,8 +107,8 @@ readme = "README.adoc" packages = [{include = "robotide"}] [tool.poetry.dependencies] -python = "^3.9" -wxPython = "^4.1.1" +python = "^3.10" +wxPython = "^4.3.0" pywin32 = { version = "*", markers = "sys_platform == 'win32'" } pygments = "^2.20.0" robotframework = "*" diff --git a/src/robotide/ui/mainframe.py b/src/robotide/ui/mainframe.py index de2d2aa77..4d718c9d9 100644 --- a/src/robotide/ui/mainframe.py +++ b/src/robotide/ui/mainframe.py @@ -671,7 +671,7 @@ def on_open_directory(self, event): __ = event if self.check_unsaved_modifications(): path = wx.DirSelector(message=_("Choose a directory containing Robot files"), - default_path=self.controller.default_dir) + defaultPath=self.controller.default_dir) if path: self.open_suite(path) From 86b06d3050746761ccd263ed208daa1a42a98754 Mon Sep 17 00:00:00 2001 From: JFoederer <32476108+JFoederer@users.noreply.github.com> Date: Sat, 8 Aug 2026 14:03:37 +0200 Subject: [PATCH 2/3] undo dependency changes --- pyproject.toml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 8fa9ed474..55bb7f205 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -17,7 +17,7 @@ Project: https://github.com/robotframework/RIDE#readme long_description_content_type = "text/x-rst" license = "Apache-2.0" license-files = { paths = ["LICENSE.txt"] } -requires-python = ">=3.10, <3.15" +requires-python = ">=3.9, <3.15" authors = [ { name = "Robot Framework Developers", email = "robotframework@gmail.com" }, ] @@ -35,6 +35,7 @@ classifiers = [ "Development Status :: 5 - Production/Stable", "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", + "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", @@ -48,10 +49,11 @@ dependencies = [ "Pygments>=2.20.0", "PyPubSub", "Pywin32; platform_system == 'Windows'", - "wxPython>=4.3.0", + "wxPython", "robotframework", "psutil", "packaging", + "requests==2.32.5; python_version < '3.10'", "requests>=2.33.0; python_version >= '3.10'" ] @@ -107,8 +109,8 @@ readme = "README.adoc" packages = [{include = "robotide"}] [tool.poetry.dependencies] -python = "^3.10" -wxPython = "^4.3.0" +python = "^3.9" +wxPython = "^4.1.1" pywin32 = { version = "*", markers = "sys_platform == 'win32'" } pygments = "^2.20.0" robotframework = "*" From 925673fbbdb5a238aeda5bdc793c44d5e95bdf1c Mon Sep 17 00:00:00 2001 From: JFoederer <32476108+JFoederer@users.noreply.github.com> Date: Sat, 8 Aug 2026 14:21:48 +0200 Subject: [PATCH 3/3] backwards compatible open dir fix for wxpython --- src/robotide/ui/mainframe.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/robotide/ui/mainframe.py b/src/robotide/ui/mainframe.py index 4d718c9d9..8d81ee8bf 100644 --- a/src/robotide/ui/mainframe.py +++ b/src/robotide/ui/mainframe.py @@ -79,7 +79,7 @@ def get_menudata(): help_4 = _("!Report a Problem | Open browser to SEARCH on the RIDE issue tracker\n") help_6 = _("!About | Information about RIDE\n") help_7 = _("!Check for Upgrade | Looks at PyPi for new released version\n") - + return (file_0 + file_1 + separator + file_2 + file_3 + file_4 + separator + file_5 + file_6 + separator + file_7 + '\n' + tool_0 + tool_1 + tool_2 + tool_3 + tool_4 + '\n' + help_0 + help_1 + help_2 + help_3 + help_4 + help_6 + help_7) @@ -670,8 +670,12 @@ def refresh_datafile(self, item, event): def on_open_directory(self, event): __ = event if self.check_unsaved_modifications(): - path = wx.DirSelector(message=_("Choose a directory containing Robot files"), - defaultPath=self.controller.default_dir) + if wx.VERSION >= (4, 3, 0): + path = wx.DirSelector(message=_("Choose a directory containing Robot files"), + defaultPath=self.controller.default_dir) + else: + path = wx.DirSelector(message=_("Choose a directory containing Robot files"), + default_path=self.controller.default_dir) if path: self.open_suite(path)