setStyle(self,
font=' Arial ' ,
fontsize=12,
alignment=' left ' ,
variant=' Regular ' ,
color=' 000000 ' ,
multiline=True,
cursorWidth=None,
border=0,
blurOpacity=0.3,
flashingCursor=False,
cursorColor=' 000000 ' ,
lineSpacing=0,
letterSpacing=0)
| source code
|
Set TextArea's graphical appearance
- Parameters:
font - font face
fontsize - font size in pixels
alignment - one among 'left', 'right', 'center'
variant - font variant (eg: 'bold')
color - RGB hex for text color
multiline - boolean, whether TextArea has to wrap (undefinitely) or stop at
full width
cursorWidth - int, width of the cursor in pixels
border - amount of offsetting pixels that words node will have from image
extents
blurOpacity - opacity that textarea gets when goes to blur state
flashingCursor - whether the cursor should flash or not
cursorColor - RGB hex for cursor color
lineSpacing - linespacing property of words node
letterSpacing - letterspacing property of words node
|