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

[PySide] AttributeError: 'QwtPlotCanvas' object has no attribute 'Sunken' #76

Closed
PierreRaybaut opened this issue Aug 5, 2023 · 0 comments
Labels

Comments

@PierreRaybaut
Copy link
Collaborator

With PySide 6.5.2, Python 3.11.3 on Windows:

Traceback (most recent call last):
  File "C:\Dev\PythonQwt\qwt\plot_canvas.py", line 595, in event
    return QFrame.event(self, event)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Dev\PythonQwt\qwt\plot_canvas.py", line 654, in paintEvent
    self.drawBorder(painter)
  File "C:\Dev\PythonQwt\qwt\plot_canvas.py", line 768, in drawBorder
    if frameShadow == self.Sunken:
                      ^^^^^^^^^^^
AttributeError: 'QwtPlotCanvas' object has no attribute 'Sunken'
QBackingStore::endPaint() called with active painter; did you forget to destroy it or call QPainter::end() on it?
QPaintDevice: Cannot destroy paint device that is being painted
Traceback (most recent call last):
  File "C:\Dev\PythonQwt\qwt\plot_canvas.py", line 595, in event
    return QFrame.event(self, event)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Dev\PythonQwt\qwt\plot_canvas.py", line 654, in paintEvent
    self.drawBorder(painter)
  File "C:\Dev\PythonQwt\qwt\plot_canvas.py", line 768, in drawBorder
    if frameShadow == self.Sunken:
                      ^^^^^^^^^^^
AttributeError: 'QwtPlotCanvas' object has no attribute 'Sunken'
QBackingStore::endPaint() called with active painter; did you forget to destroy it or call QPainter::end() on it?
QPaintDevice: Cannot destroy paint device that is being painted
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant