def _mouseButton(self, widget, event): CairoGTK._mouseButton(self, widget, event) if event.button == 2 and event.type == gdk.BUTTON_RELEASE: self.next_module() self._reshape() self.redraw()
def __init__(self, modlib, index): CairoGTK.__init__(self, KicadDrawing(modlib.modules[index])) self.modlib = modlib self.index = index