misc ¶
Classes:
-
StatusBar– -
Switch– -
TableModel–
StatusBar ¶
StatusBar(parent: QWidget)
Bases: QStatusBar
Methods:
Attributes:
-
duration_label(QLabel) – -
fps_label(QLabel) – -
frame_props_label(QLabel) – -
label(QLabel) – -
label_names– -
permament_start_index– -
pixel_format_label(QLabel) – -
resolution_label(QLabel) – -
total_frames_label(QLabel) –
Source code in vspreview/core/custom/misc.py
32 33 34 35 | |
label_names class-attribute instance-attribute ¶
label_names = (
"total_frames_label",
"duration_label",
"resolution_label",
"pixel_format_label",
"fps_label",
"frame_props_label",
"label",
)
addPermanentWidget ¶
addPermanentWidget(widget: QWidget, stretch: int = 0) -> None
Source code in vspreview/core/custom/misc.py
37 38 | |
addWidget ¶
addWidget(widget: QWidget, stretch: int = 0) -> None
Source code in vspreview/core/custom/misc.py
40 41 42 | |
addWidgets ¶
Source code in vspreview/core/custom/misc.py
44 45 46 | |
Switch ¶
Switch(
radius: int = 10,
width: int = 32,
border: int = 1,
state_texts: tuple[str, str, int] = ("OFF", "ON", 1),
state_colors: tuple[QColor, QColor] = (
QColor(69, 83, 100),
QColor(96, 121, 139),
),
border_color: QColor = QColor(69, 83, 100),
text_color: QColor = QColor(224, 225, 226),
background_color: QColor = QColor(25, 35, 45),
**kwargs: Any
)
Bases: PushButton
Methods:
Attributes:
-
background_color– -
border– -
border_color– -
radius– -
state_colors– -
state_texts– -
sw_width– -
text_color–
Source code in vspreview/core/custom/misc.py
54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 | |
paintEvent ¶
paintEvent(event: QPaintEvent) -> None
Source code in vspreview/core/custom/misc.py
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 | |
TableModel ¶
Bases: QAbstractTableModel
Methods:
-
columnCount– -
data– -
headerData– -
rowCount–
Source code in vspreview/core/custom/misc.py
109 110 111 112 113 114 | |
columnCount ¶
columnCount(index: QModelIndex) -> int
Source code in vspreview/core/custom/misc.py
123 124 | |
data ¶
Source code in vspreview/core/custom/misc.py
116 117 118 | |
headerData ¶
headerData(section, orientation, role)
Source code in vspreview/core/custom/misc.py
126 127 128 129 130 131 132 133 134 135 136 137 | |