Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(0)  |  Call(0)  |  Derive(0)  |  Import(0)

src/o/r/orange3-HEAD/Orange/widgets/data/owpaintdata.py   orange3(Download)
                         axes or [owconstants.xBottom, owconstants.yLeft],
                         widget)
        self.state = owconstants.NOTHING
        self.graph_margin = 10
        self.y_axis_extra_margin = -10
    def mousePressEvent(self, event):
        if self.state == owconstants.NOTHING and self.tool:
            self.tool.mousePressEvent(event)
        else:
            super().mousePressEvent(event)
 
    def mouseMoveEvent(self, event):
        if self.state == owconstants.NOTHING and self.tool:
    def mouseReleaseEvent(self, event):
        if self.state == owconstants.NOTHING and self.tool:
            self.tool.mouseReleaseEvent(event)
        else:
            super().mouseReleaseEvent(event)
    def __init__(self, parent):
        QtCore.QObject.__init__(self, parent)
        self.widget = parent
        self.state = owconstants.NOTHING