diff options
Diffstat (limited to 'examples/charts/callout.py')
-rw-r--r-- | examples/charts/callout.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/charts/callout.py b/examples/charts/callout.py index a7aff6282..54e8eaf24 100644 --- a/examples/charts/callout.py +++ b/examples/charts/callout.py @@ -42,7 +42,7 @@ """PySide2 port of the Callout example from Qt v5.x""" import sys -from PySide2.QtWidgets import (QApplication, QWidget, QGraphicsScene, +from PySide2.QtWidgets import (QApplication, QGraphicsScene, QGraphicsView, QGraphicsSimpleTextItem, QGraphicsItem) from PySide2.QtCore import Qt, QPointF, QRectF, QRect from PySide2.QtCharts import QtCharts @@ -192,7 +192,7 @@ class View(QGraphicsView): self._coordX = QGraphicsSimpleTextItem(self._chart) self._coordX.setPos( self._chart.size().width()/2 - 50, self._chart.size().height()) - self._coordX.setText("X: "); + self._coordX.setText("X: ") self._coordY = QGraphicsSimpleTextItem(self._chart) self._coordY.setPos( self._chart.size().width()/2 + 50, self._chart.size().height()) @@ -232,7 +232,7 @@ class View(QGraphicsView): QGraphicsView.mouseMoveEvent(self, event) def keepCallout(self): - self._callouts.append(self._tooltip); + self._callouts.append(self._tooltip) self._tooltip = Callout(self._chart) def tooltip(self, point, state): |