TextCharFormatMixin
Sub classes
| Name | Children | Inherits |
|---|---|---|
| TextCharFormat prettyqt.gui.textcharformat |
||
| TextImageFormat prettyqt.gui.textimageformat |
||
| TextTableCellFormat prettyqt.gui.texttablecellformat |
Base classes
| Name | Children | Inherits |
|---|---|---|
| TextFormatMixin prettyqt.gui.textformat |
|
|
| object builtins The base class of the class hierarchy. |
â‹” Inheritance diagram
graph TD
1115109788["gui.TextCharFormatMixin"]
1171567019["gui.TextFormatMixin"]
2751680898["builtins.object"]
1171567019 --> 1115109788
2751680898 --> 1171567019
2751680898 --> 1115109788
🛈 DocStrings
Bases: TextFormatMixin, _TextCharFormatBase
Source code in prettyqt/gui/textcharformat.py
75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 | |
get_font_weight() -> gui.font.WeightStr
get_underline_style() -> UnderlineStyleStr
get_vertical_alignment() -> VerticalAlignmentStr
set_font_style_hint(hint: gui.font.StyleHintStr | gui.Font.StyleHint)
Set the font style hint.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
hint
|
StyleHintStr | StyleHint
|
font style hint |
required |
set_font_weight(weight: gui.font.WeightStr | gui.Font.Weight)
Set the font weight.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
weight
|
WeightStr | Weight
|
font weight |
required |
set_underline_style(style: UnderlineStyleStr | mod.UnderlineStyle)
Set the underline style.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
style
|
UnderlineStyleStr | UnderlineStyle
|
underline style |
required |
set_vertical_alignment(alignment: VerticalAlignmentStr | gui.QTextCharFormat.VerticalAlignment)
Set the vertical alignment.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
alignment
|
VerticalAlignmentStr | VerticalAlignment
|
vertical alignment |
required |