Skip to content

Commit 1eb1b68

Browse files
committed
Fixed #77: AttributeError when QwtPlot is being deleted
1 parent e4c8550 commit 1eb1b68

File tree

2 files changed

+2
-11
lines changed

2 files changed

+2
-11
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
- Unit tests: added support for ``pytest`` and ``coverage`` (60% coverage as of today)
88

9+
- [Issue #77](https://github.com/PlotPyStack/PythonQwt/issues/77) - AttributeError: 'XXX' object has no attribute '_QwtPlot__data'
10+
911
- [Issue #72](https://github.com/PlotPyStack/PythonQwt/issues/72) - AttributeError: 'QwtScaleWidget' object has no attribute 'maxMajor' / 'maxMinor' / 'stepSize'
1012

1113
- [Issue #76](https://github.com/PlotPyStack/PythonQwt/issues/76) - [PySide] AttributeError: 'QwtPlotCanvas' object has no attribute 'Sunken'

qwt/plot.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -361,17 +361,6 @@ def __init__(self, *args):
361361

362362
qwtEnableLegendItems(self, True)
363363

364-
def __del__(self):
365-
self.setAutoReplot(False)
366-
# XXX Is is really necessary in Python? (pure transcription of C++)
367-
# The following line have been commented to avoid crashing Python
368-
# when exiting interpreter (Python 3 only)
369-
370-
# self.detachItems(QwtPlotItem.Rtti_PlotItem, self.autoDelete())
371-
# self.__data.layout = None
372-
# self.deleteAxesData()
373-
# self.__data = None
374-
375364
def setFlatStyle(self, state):
376365
"""
377366
Set or reset the flatStyle option

0 commit comments

Comments
 (0)