def __init__(self, text= "OK", font=FONT, width=0, height=0, bgcolor=COLOR_BG, bordercolor=COLOR, hoverbordercolor=COLOR_HOVER, borderwidth = 1, parent=None): self.has_focus = False self.shift = False Label.__init__(self, text, font, width, height, bgcolor, bordercolor, hoverbordercolor, borderwidth, parent)
def __init__(self, text= "OK", font=FONT, width=0, height=0, bgcolor=(100,100,100), bordercolor=(255,255,255), hoverbordercolor=(255,255,255), borderwidth = 1): Label.__init__(self, text, font, width, height, bgcolor, bordercolor, hoverbordercolor, borderwidth) self.baseText = text self.padding = 2 self.font = font self.click = False self.setText(" " + self.baseText + " ")
def __init__(self, text= "OK", textcolor=COLOR, font=FONT, width=80, height=20, bgcolor=COLOR_BG, bordercolor=COLOR, hoverbordercolor=COLOR_HOVER, borderwidth = 1, parent=None): self.i = 0 #Frame.__init__(self, width, height, bgcolor, bordercolor, hoverbordercolor, borderwidth, parent) self.lineStep = 14 self.baseText = text self.padding = 2 self.font = font self.textColor = textcolor Label.__init__(self, text, font, width, height, bgcolor, bordercolor, hoverbordercolor, borderwidth, parent) self.setText(self.baseText)