[docs]defset_border_color(self,color:str):"""Sets the border color of the text box. Args: color (str): New border color as string, should be in HEX format e.g. #FFFFFF. """self.instance.send(self.id,'setBorderColor',{'color':color})returnself
[docs]defset_border_width(self,width:int|float):"""Sets the border width of the text box. Args: width (int | float): New border width. """self.instance.send(self.id,'setBorderWidth',{'width':width})returnself
[docs]defset_fill_color(self,color:str):"""Sets the fill color of the text box. Args: color (str): New fill color as string, should be in HEX format e.g. #FFFFFF. """self.instance.send(self.id,'setFillColor',{'color':color})returnself
[docs]defset_font_size(self,fontSize:int|float):"""Sets the font size of the text. Args: fontSize (int | float): New font size for the text. """self.instance.send(self.id,'setFontSize',{'fontSize':fontSize})returnself
[docs]defset_text(self,text:str):"""Sets the text. Args: text (str): New text. """self.instance.send(self.id,'setText',{'text':text})returnself
[docs]defset_text_color(self,color:str):"""Sets the color of the text. Args: color (str): New text color as string, should be in HEX format e.g. #FFFFFF. """self.instance.send(self.id,'setTextColor',{'color':color})returnself
[docs]defupdate_position(self,positionX:int|float,positionY:int|float):"""Updates the position of the text. Args: positionX (int | float): Text X-position. positionY (int | float): Text Y-position. """self.instance.send(self.id,'updateTextBoxPosition',{'positionX':positionX,'positionY':positionY},)returnself