Exemple #1
0
 def __init__(self, plot):
     QObject.__init__(self, plot)
     self.__selectedCurve = None
     self.__selectedPoint = -1
     self.__plot = plot
     canvas = plot.canvas()
     canvas.installEventFilter(self)
     # We want the focus, but no focus rect.
     # The selected point will be highlighted instead.
     canvas.setFocusPolicy(Qt.StrongFocus)
     canvas.setCursor(Qt.PointingHandCursor)
     canvas.setFocusIndicator(QwtPlotCanvas.ItemFocusIndicator)
     canvas.setFocus()
     canvas.setWhatsThis(
         'All points can be moved using the left mouse button '
         'or with these keys:\n\n'
         '- Up: Select next curve\n'
         '- Down: Select previous curve\n'
         '- Left, "-": Select next point\n'
         '- Right, "+": Select previous point\n'
         '- 7, 8, 9, 4, 6, 1, 2, 3: Move selected point')
     self.__shiftCurveCursor(True)
 def __init__(self, plot):
     QObject.__init__(self, plot)
     self.__selectedCurve = None
     self.__selectedPoint = -1
     self.__plot = plot
     canvas = plot.canvas()
     canvas.installEventFilter(self)
     # We want the focus, but no focus rect.
     # The selected point will be highlighted instead.
     canvas.setFocusPolicy(Qt.StrongFocus)
     canvas.setCursor(Qt.PointingHandCursor)
     canvas.setFocusIndicator(QwtPlotCanvas.ItemFocusIndicator)
     canvas.setFocus()
     canvas.setWhatsThis(
         "All points can be moved using the left mouse button "
         "or with these keys:\n\n"
         "- Up: Select next curve\n"
         "- Down: Select previous curve\n"
         '- Left, "-": Select next point\n'
         '- Right, "+": Select previous point\n'
         "- 7, 8, 9, 4, 6, 1, 2, 3: Move selected point"
     )
     self.__shiftCurveCursor(True)
 def __init__(self, parent=None):
     QObject.__init__(self, parent)
     self.__data = QwtPlotRenderer_PrivateData()
Exemple #4
0
 def __init__(self, parent=None):
     QObject.__init__(self, parent)
     self.__data = QwtPlotRenderer_PrivateData()
Exemple #5
0
 def eventFilter(self, object, event):
     if (event.type() == QEvent.MouseButtonPress):
         self.__mouseClicked(object, event.pos())
         return True
     return QObject.eventFilter(self, object, event)
Exemple #6
0
 def __init__(self, plot):
     QObject.__init__(self, plot)
     for i in range(QwtPlot.axisCnt):
         scaleWidget = plot.axisWidget(i)
         if scaleWidget:
             scaleWidget.installEventFilter(self)
Exemple #7
0
 def event(self, event):
     if event.type() == QEvent.User:
         self.__showCursor(True)
         return True
     return QObject.event(self, event)
Exemple #8
0
 def __init__(self, parent):
     QObject.__init__(self, parent)
     parent.setMouseTracking(True)
     parent.installEventFilter(self)
 def eventFilter(self, object, event):
     if event.type() == QEvent.MouseButtonPress:
         self.__mouseClicked(object, event.pos())
         return True
     return QObject.eventFilter(self, object, event)
 def __init__(self, plot):
     QObject.__init__(self, plot)
     for i in range(QwtPlot.axisCnt):
         scaleWidget = plot.axisWidget(i)
         if scaleWidget:
             scaleWidget.installEventFilter(self)
 def event(self, event):
     if event.type() == QEvent.User:
         self.__showCursor(True)
         return True
     return QObject.event(self, event)
 def __init__(self, parent=None):
     QObject.__init__(self, parent)
     self.__data = QwtPlotDirectPainter_PrivateData()
Exemple #13
0
 def __init__(self, parent=None):
     QObject.__init__(self, parent)
     self.__data = QwtPlotDirectPainter_PrivateData()