Inheritance diagram for wx.TextAttr:
wx.TextAttr represents the character and paragraph attributes, or style, for a range of text in a wx.TextCtrl.
When setting up a wx.TextAttr object, pass a bitlist mask to SetFlags to indicate which style elements should be changed. As a convenience, when you call a setter such as SetFont, the relevant bit will be set.
Constants
The following values can be passed to SetAlignment to determine paragraph alignment:
These values are passed in a bitlist to SetFlags to determine what attributes will be considered when setting the attributes for a text control:
The constructors initialize one or more of the text foreground colour, background colour, font, and alignment.
The values not initialized in the constructor can be set later, otherwise wx.TextCtrl.SetStyle will use the default values for them.
Parameters:
Returns:
Parameters:
Returns:
Returns the paragraph alignment.
Returns:
int
Returns a bitlist indicating which attributes will be set.
Returns:
long
Returns the left indent in tenths of a millimetre.
Returns:
int
Returns the left sub indent for all lines but the first line in a paragraph in tenths of a millimetre.
Returns:
int
Returns the right indent in tenths of a millimetre.
Returns:
int
Returns the array of integers representing the tab stops. Each array element specifies the tab stop in tenths of a millimetre.
Returns:
list of integers
Returns True if this style specifies the text alignment.
Returns:
bool
Returns True if this style specifies the background colour to use.
Returns:
bool
Parameters:
Returns:
bool
Returns True if this style specifies the font to use.
Returns:
bool
Returns True if this style specifies the left indent.
Returns:
bool
Returns True if this style specifies the right indent.
Returns:
bool
Returns True if this style specifies any tabstobs.
Returns:
bool
Returns True if this style specifies the foreground colour to use.
Returns:
bool
Returns True if this style specifies any non-default attributes.
Returns:
bool
Creates a new wx.TextAttr which is a merge of base and overlay. Properties defined in overlay take precedence over those in base.
Properties undefined/invalid in both are undefined in the result.
Parameters:
Returns:
Sets the paragraph alignment.
Parameters:
Pass a bitlist indicating which attributes will be set.
Parameters:
Sets the left indent in tenths of a millimetre. subIndent sets the indent for all lines but the first line in a paragraph relative to the first line.
Parameters:
Sets the right indent in tenths of a millimetre.
Parameters:
Sets the array of integers representing the tab stops. Each array element specifies the tab stop in tenths of a millimetre.
Parameters: