Exemplo n.º 1
0
 def _draw(self, info):
     currentTool = getActiveEventTool()
     view = currentTool.getNSView()
     if self.drawAtPoint:
         view._drawTextAtPoint("%i %i" %(self.x, self.y), textAttributes, self.drawAtPoint, yOffset=fontSize)
     else:
         print 'mouse is up'
Exemplo n.º 2
0
 def _draw(self, info):
     currentTool = getActiveEventTool()
     view = currentTool.getNSView()
     if self.drawAtPoint:
         view._drawTextAtPoint("%i %i" %(self.x, self.y), textAttributes, self.drawAtPoint, yOffset=0, backgroundColor=bgColor, drawBackground=True, roundBackground=True)