Open homosapien-lcy opened 1 year ago
I found that if I remove the del method, which is responsible for desctroying the object from the python side, in the enable/enable/qt4/scrollbar.py (https://github.com/enthought/enable/blob/main/enable/qt4/scrollbar.py#L97), the error can be solved. But I'm not sure whether there is other essential functionality of this del function.
Removing the __del__
method is not solving the problem. It just hides it. That can't be the solution.
Problem Description Some examples involving enable/enable/qt4/scrollbar.py can be run successfully, but after closing, an already deleted error will arise.
Reproduction Steps:
Then close the plot window
Expected behavior: The window closed without error (the first part of the error message is related to issue #1030, not in the scope of the current issue)
OS, Python version: [MacOS, python3.11]
package list: Package Version Editable project location
attrdict 2.0.1 attrdict3 2.0.2 chaco 5.1.0 /Users/cyliu/Documents/3.11_test/chaco configobj 5.0.8 enable 5.4.0.dev28 /Users/cyliu/Documents/3.11_test/enable fonttools 4.39.2 joblib 1.2.0 numpy 1.24.2 pandas 1.5.3 Pillow 9.4.0 pip 22.3.1 PyAudio 0.2.13 pyface 8.0.0 pygarrayimage 1.0 pyglet 2.0.5 /Users/cyliu/Documents/3.11_test/pyglet Pygments 2.14.0 pyparsing 3.0.9 PySide6 6.4.3 PySide6-Addons 6.4.3 PySide6-Essentials 6.4.3 python-dateutil 2.8.2 pytz 2023.2 reportlab 3.6.12 scikit-learn 1.2.2 scipy 1.10.1 setuptools 65.6.3 shiboken6 6.4.3 six 1.16.0 threadpoolctl 3.1.0 traits 7.0.0.dev1840 /Users/cyliu/Documents/3.11_test/traits traitsui 7.4.3 wxPython 4.2.0