示例#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)
示例#2
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)
示例#3
0
 def __init__(self, parent=None):
     QObject.__init__(self, parent)
     self.__data = QwtPlotRenderer_PrivateData()
示例#4
0
 def __init__(self, parent=None):
     QObject.__init__(self, parent)
     self.__data = QwtPlotRenderer_PrivateData()
示例#5
0
 def __init__(self, plot):
     QObject.__init__(self, plot)
     for i in range(QwtPlot.axisCnt):
         scaleWidget = plot.axisWidget(i)
         if scaleWidget:
             scaleWidget.installEventFilter(self)
示例#6
0
 def __init__(self, parent):
     QObject.__init__(self, parent)
     parent.setMouseTracking(True)
     parent.installEventFilter(self)
示例#7
0
 def __init__(self, plot):
     QObject.__init__(self, plot)
     for i in range(QwtPlot.axisCnt):
         scaleWidget = plot.axisWidget(i)
         if scaleWidget:
             scaleWidget.installEventFilter(self)
示例#8
0
 def __init__(self, parent=None):
     QObject.__init__(self, parent)
     self.__data = QwtPlotDirectPainter_PrivateData()
示例#9
0
 def __init__(self, parent=None):
     QObject.__init__(self, parent)
     self.__data = QwtPlotDirectPainter_PrivateData()