def setToolCursor(self, newCursor): ''' ''' if (self.toolCursor is None and self.toolCursor == newCursor): return self.deleteToolCursor() self.toolCursor = newCursor if self.toolCursor is not None: x, y, x2, y2 = self.expandMapCoords(self.toolCursor.rect) width = x2 - x height = y2 - y self.toolCursor.vl = createRect(x, y, width, height, self.toolCursor.fillColor, self.parentFrame.batch, self.toolCursorGroup) self.toolCursor.borderVL = createHollowRect( x, y, width, height, self.toolCursor.borderColor, self.parentFrame.batch, self.toolCursorGroup)
def focus(self): self.setBorder( createHollowRect( self.x - 4, self.y - 2, self.label.content_width + 6, self.label.content_height + 2, self.borderColor, self.parentFrame.batch, self.parentFrame.fgGroup, ) )
def focus(self): self.setBorder( createHollowRect(self.x - 4, self.y - 2, self.label.content_width + 6, self.label.content_height + 2, self.borderColor, self.parentFrame.batch, self.parentFrame.fgGroup))