TextBlockFormat
Base classes
| Name | Children | Inherits |
|---|---|---|
| TextFormatMixin prettyqt.gui.textformat |
|
|
| QTextBlockFormat PySide6.QtGui QTextBlockFormat(self, /) -> None |
â‹” Inheritance diagram
graph TD
1629978904["gui.TextBlockFormat"]
1171567019["gui.TextFormatMixin"]
2751680898["builtins.object"]
3612232359["QtGui.QTextBlockFormat"]
1757385971["QtGui.QTextFormat"]
37984305["Shiboken.Object"]
1171567019 --> 1629978904
2751680898 --> 1171567019
3612232359 --> 1629978904
1757385971 --> 3612232359
37984305 --> 1757385971
2751680898 --> 37984305
🛈 DocStrings
Bases: TextFormatMixin, QTextBlockFormat
Source code in prettyqt/gui/textblockformat.py
get_alignment() -> constants.AlignmentStr
get_marker() -> MarkerTypeStr
get_page_break_policy() -> gui.textformat.PageBreakFlagStr
Get the current page break policy.
set_alignment(alignment: constants.AlignmentStr | constants.AlignmentFlag)
Set the alignment of the format.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
alignment
|
AlignmentStr | AlignmentFlag
|
alignment for the format |
required |
Source code in prettyqt/gui/textblockformat.py
set_marker(marker: MarkerTypeStr | gui.QTextBlockFormat.MarkerType)
Set the marker.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
marker
|
MarkerTypeStr | MarkerType
|
marker |
required |
set_page_break_policy(policy: gui.textformat.PageBreakFlagStr | gui.QTextFormat.PageBreakFlag)
Set page break policy.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
policy
|
PageBreakFlagStr | PageBreakFlag
|
page break policy |
required |