Exemplo n.º 1
0
	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()
Exemplo n.º 2
0
	def __init__(self, modlib, index):
		CairoGTK.__init__(self, KicadDrawing(modlib.modules[index]))
		self.modlib = modlib
		self.index = index