TextCharFormatMixin
Base classes
Name | Children | Inherits |
---|---|---|
TextFormatMixin prettyqt.gui.textformat |
|
Subclasses
Class | Module | Description |
---|---|---|
TextCharFormat | prettyqt.gui.textcharformat | |
TextImageFormat | prettyqt.gui.textimageformat | |
TextTableCellFormat | prettyqt.gui.texttablecellformat |
⋔ Inheritance diagram
graph TD
1473245667552["gui.TextCharFormatMixin"]
1473245646080["gui.TextFormatMixin"]
140713234304496["builtins.object"]
1473245646080 --> 1473245667552
140713234304496 --> 1473245646080
🛈 DocStrings
Bases: TextFormatMixin
Source code in prettyqt\gui\textcharformat.py
65 66 67 68 69 70 71 72 73 74 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 |
|
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 |