VTextWrapper
- class VText.VTextWrapper(object: Object)
Bases:
Object- class Fonts
Bases:
object- Ubuntu: Any = Ellipsis
Ubuntu
- PtSerif: Any = Ellipsis
PT Serif
- RobotoMono: Any = Ellipsis
Roboto Mono
- BadScript: Any = Ellipsis
BadScript
- class HorizontalAlignment
Bases:
object- Left: Any = Ellipsis
On the left edge
- Right: Any = Ellipsis
On the right edge
- Center: Any = Ellipsis
On the midpoint
- Flush: Any = Ellipsis
Fill in
- class VerticalAlignment
Bases:
object- Top: Any = Ellipsis
On the top edge
- Middle: Any = Ellipsis
On the midpoint
- Bottom: Any = Ellipsis
On the bottom edge
- class KeepProportionOptions
Bases:
object- Save: Any = Ellipsis
Keep
- Keep: Any = Ellipsis
Don’t keep
- property TextColor: Color
Text color
Example:
value = instance.TextColor
Warning
An AttributeError exception may occur during use if the getter has not been implemented.
- property PanelColor: Color
Panel color
Example:
value = instance.PanelColor
Warning
An AttributeError exception may occur during use if the getter has not been implemented.
- property Size: float
Size font
Example:
value = instance.Size
Warning
An AttributeError exception may occur during use if the getter has not been implemented.
- property MaxFontSize: float
Max [value] font size
Example:
value = instance.MaxFontSize
Warning
An AttributeError exception may occur during use if the getter has not been implemented.
- property MinFontSize: float
Min [value] font size
Example:
value = instance.MinFontSize
Warning
An AttributeError exception may occur during use if the getter has not been implemented.
- property Bold: bool
Bold font style
Example:
value = instance.Bold
Warning
An AttributeError exception may occur during use if the getter has not been implemented.
- property Italic: bool
Italic font style to
Example:
value = instance.Italic
Warning
An AttributeError exception may occur during use if the getter has not been implemented.
- property Font: Any
- Returns:
value from the list:
VTextWrapper.Fonts.Ubuntu
VTextWrapper.Fonts.PtSerif
VTextWrapper.Fonts.RobotoMono
VTextWrapper.Fonts.BadScript
Example:
value = instance.Font
Warning
An AttributeError exception may occur during use if the getter has not been implemented.
- property Underline: bool
Underline font style to
Example:
value = instance.Underline
Warning
An AttributeError exception may occur during use if the getter has not been implemented.
- property Strikethrough: bool
Strikethrough font style to
Example:
value = instance.Strikethrough
Warning
An AttributeError exception may occur during use if the getter has not been implemented.
- property HorizontalTextAlignment: Any
Horizontal alignment
- Returns:
value from the list:
VTextWrapper.HorizontalAlignment.Left
VTextWrapper.HorizontalAlignment.Right
VTextWrapper.HorizontalAlignment.Center
VTextWrapper.HorizontalAlignment.Flush
Example:
value = instance.HorizontalTextAlignment
Warning
An AttributeError exception may occur during use if the getter has not been implemented.
- property VerticalTextAlignment: Any
Vertical alignment
- Returns:
value from the list:
VTextWrapper.VerticalAlignment.Top
VTextWrapper.VerticalAlignment.Middle
VTextWrapper.VerticalAlignment.Bottom
Example:
value = instance.VerticalTextAlignment
Warning
An AttributeError exception may occur during use if the getter has not been implemented.
- property TopPadding: int
Set top padding to
Example:
value = instance.TopPadding
Warning
An AttributeError exception may occur during use if the getter has not been implemented.
- property BottomPadding: int
Set bottom padding to
Example:
value = instance.BottomPadding
Warning
An AttributeError exception may occur during use if the getter has not been implemented.
- property LeftPadding: int
Set left padding to
Example:
value = instance.LeftPadding
Warning
An AttributeError exception may occur during use if the getter has not been implemented.
- property RightPadding: int
Set right padding to
Example:
value = instance.RightPadding
Warning
An AttributeError exception may occur during use if the getter has not been implemented.
- property KeepTextProportions: Any
[value] the text proportions when changing the panel proportions
- Returns:
value from the list:
VTextWrapper.KeepProportionOptions.Save
VTextWrapper.KeepProportionOptions.Keep
Example:
value = instance.KeepTextProportions
Warning
An AttributeError exception may occur during use if the getter has not been implemented.
- property SortingOrder: int
Sorting order
Example:
value = instance.SortingOrder
Warning
An AttributeError exception may occur during use if the getter has not been implemented.
- SetText(value: str) None
Set text
Example:
instance.SetText("text")
- GetText() str
Get text
Example:
value = instance.GetText()