Did I find the right examples for you? yes no

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

src/c/h/chirp-1.2.2/chirp/gui/DrawMask.py   chirp(Download)
    def _onLeftButtonDown(self, evt):
        x, y = self._xypos(evt)
        if self.drawing:
            # close polygon
            self.polygon.close_path()
    def drawMotion(self, evt):
        if self.drawing and self.painter == self.polygon:
            x, y = self._xypos(evt)
            self.polygon.add_vertex(x, y)
        else: