Environment
OS: Windows
Python version: 3.10
Toolkit: Wx
Description
When creating a Workbench with a status_bar, the following exception is raised when closing the window:
Traceback (most recent call last):
File "D:\ANSYSDev\thirdparty_sources\pyface\pyface\dock\dock_sizer.py", line 4022, in CalcMin
dx, dy = self._contents.calc_min()
File "D:\ANSYSDev\thirdparty_sources\pyface\pyface\dock\dock_sizer.py", line 3190, in calc_min
dx, dy = item.calc_min(use_size)
File "D:\ANSYSDev\thirdparty_sources\pyface\pyface\dock\dock_sizer.py", line 2402, in calc_min
theme = self.theme
File "D:\ANSYSDev\thirdparty_sources\pyface\pyface\dock\dock_sizer.py", line 503, in _get_theme
return self.control.GetParent().owner.theme
RuntimeError: wrapped C/C++ object of type TraitsUIPanel has been deleted
Steps to Reproduce
Other observations
The exception does not occur if the window tab (fred) is closed before closing the Application.
Changing the toolkit to 'qt' also makes the exception disappear.
Environment
OS: Windows
Python version: 3.10
Toolkit: Wx
Description
When creating a
Workbenchwith astatus_bar, the following exception is raised when closing the window:Steps to Reproduce
Run the following script (adapted and minimized from the
workbenchexample):Close the application
Other observations
The exception does not occur if the window tab (
fred) is closed before closing the Application.Changing the toolkit to
'qt'also makes the exception disappear.