def __init__(self, label="", is_pressed=False, on_press=None,width=0,height=0,font_size=None,path=None,alternative=None,argument=None,outline=None,disabled=False,align=HALIGN_CENTER,font_color=None,texture=None,outlinePressingEnabled=True,font=None,font_valign=VALIGN_CENTER,on_right_press=None): TwoStateController.__init__(self, is_pressed=is_pressed, on_press=on_press) Viewer.__init__(self,width=width,height=height) self._width=width self._height=height self.label = label self._outlineGraphic=None # graphics self._label = None self._button = None self._fn=font if path is not None: self._path = [path] else: self._path = ['button'] self._alt=alternative self.font_size=font_size self.arg=argument self._outline=outline self.disabled=disabled self._al=align self._fl=font_color self._textureZ=texture self._olPressing=outlinePressingEnabled self._fontvalign=font_valign self.on_right_press=on_right_press
def __init__(self, label="", is_pressed=False, on_press=None): TwoStateController.__init__(self, is_pressed=is_pressed, on_press=on_press) Viewer.__init__(self) self.label = label # graphics self._label = None self._button = None
def __init__(self, label="", is_pressed=False, on_press=None): TwoStateController.__init__(self, is_pressed=is_pressed, on_press=on_press) Viewer.__init__(self) if isinstance(label, str): self._document = pyglet.text.document.UnformattedDocument(label) else: self._document = label # graphics self._label = None self._button = None
def __init__(self,width=0,height=0,path=None,alternative=None,outline=None,hover=None,hoveringType=None,arguments=None,is_pressed=False,on_press=None,disabled=False,argument=None,buttonNumber=None): Graphic.__init__(self,path=path, width=width,height=height, alternative=alternative,outline=outline) TwoStateController.__init__(self,is_pressed=is_pressed,on_press=on_press) Label.__init__(self,str(buttonNumber),color=(255,255,255,255)) self.ol=outline self.hover=hover self.args=arguments self.arg=argument self.disabled=disabled #self.hoverContent=hoverContent self.hovering=False self.hoveringType = hoveringType self.bN=buttonNumber self.pressing=False
def __init__(self, on_press=None,width=0,height=0,hover=None,argument=None,outline=None,disabled=False,arguments=None,texture=None,hoveringType=None,path=None): TwoStateController.__init__(self, is_pressed=False, on_press=on_press) Viewer.__init__(self,width=width,height=height) self.disabled=disabled self._width=width self._height=height self._outlineGraphic=None self._button = None self.hover=hover self._path=path self.leaderGraphic=None self.arg=argument self.args=arguments self._outline=outline self._painting=None self._textureZ=texture self.pressing=False self.hovering=False self.hoveringType = hoveringType self.paintingLoaded=False
def __init__(self, label="", on_press=None,width=0,height=0,font_size=None,argument=None,outline=None,font_color=None,texture=None,font=None,font_valign=VALIGN_CENTER,leader=None): TwoStateController.__init__(self, is_pressed=False, on_press=on_press) Viewer.__init__(self,width=width,height=height) self._width=width self._height=height self.label = label self._outlineGraphic=None self._label = None self._button = None self._fn=font self._path = ['button'] self._leader=leader self.leaderGraphic=None self.font_size=font_size self.arg=argument self._outline=outline self._fl=font_color self._textureZ=texture self._fontvalign=font_valign
def delete(self): TwoStateController.delete(self) Viewer.delete(self)