toolbar ¶
Classes:
PipetteToolbar ¶
PipetteToolbar(main: MainWindow)
Bases: AbstractToolbar
Methods:
-
extract_value
– -
get_notches
– -
get_separator
– -
init_notches
– -
mouse_moved
– -
mouse_pressed
– -
mouse_released
– -
on_copy_position_clicked
– -
on_current_frame_changed
– -
on_current_output_changed
– -
on_toggle
– -
prepare_vs_output
– -
resize_main_window
– -
set_qobject_names
– -
setup_ui
– -
subscribe_on_mouse_events
– -
unsubscribe_from_mouse_events
– -
update_labels
–
Attributes:
-
class_storable_attrs
– -
current_source_alpha_frame
(VideoFrame
) – -
current_source_frame
(VideoFrame
) – -
data_types
– -
hlayout
(HBoxLayout
) – -
is_notches_visible
(bool
) – -
labels
– -
last_pos
(tuple[VideoOutput, QPoint] | None
) – -
main
(MainWindow
) – -
name
(str
) – -
notches_changed
– -
num_keys
– -
outputs
– -
pos_fmt
– -
settings
(PipetteSettings
) – -
src_dec_fmt
– -
src_hex_fmt
– -
src_max_val
(float
) – -
src_norm_fmt
– -
storable_attrs
– -
toggle_button
– -
tracking
– -
visibility
– -
vlayout
(VBoxLayout
) –
Source code
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 |
|
class_storable_attrs class-attribute
instance-attribute
¶
data_types instance-attribute
¶
labels class-attribute
instance-attribute
¶
labels = [
"position",
"rgb_label",
"rgb_hex",
"rgb_dec",
"rgb_norm",
"src_label",
"src_hex",
"src_dec",
"src_norm",
]
num_keys class-attribute
instance-attribute
¶
num_keys = [
Key_1,
Key_2,
Key_3,
Key_4,
Key_5,
Key_6,
Key_7,
Key_8,
Key_9,
Key_0,
]
toggle_button instance-attribute
¶
toggle_button = PushButton(name, self, checkable=True, clicked=on_toggle)
extract_value ¶
Source code
291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 |
|
get_notches ¶
get_notches() -> Notches
Source code
405 406 407 |
|
get_separator ¶
get_separator(horizontal: bool = False) -> QFrame
Source code
318 319 320 321 322 |
|
init_notches ¶
init_notches(main: MainWindow = ...) -> None
Source code
402 403 |
|
mouse_moved ¶
mouse_moved(event: QMouseEvent) -> None
Source code
138 139 140 |
|
mouse_pressed ¶
mouse_pressed(event: QMouseEvent) -> None
Source code
142 143 144 145 146 147 |
|
mouse_released ¶
mouse_released(event: QMouseEvent) -> None
Source code
149 150 |
|
on_copy_position_clicked ¶
on_copy_position_clicked(checked: bool | None = None) -> None
Source code
262 263 264 |
|
on_current_frame_changed ¶
on_current_frame_changed(frame: Frame) -> None
Source code
120 121 122 |
|
on_current_output_changed ¶
Source code
233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 |
|
on_toggle ¶
on_toggle(new_state: bool) -> None
Source code
266 267 268 269 270 271 272 273 274 275 276 |
|
prepare_vs_output staticmethod
¶
prepare_vs_output(vs_output: VideoNode) -> VideoNode
Source code
278 279 280 281 282 283 284 285 286 287 288 289 |
|
resize_main_window ¶
resize_main_window(expanding: bool) -> None
Source code
481 482 483 484 485 486 487 488 489 |
|
set_qobject_names ¶
set_qobject_names() -> None
Source code
279 280 281 282 283 284 285 286 287 288 289 290 291 292 |
|
setup_ui ¶
setup_ui() -> None
Source code
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 |
|
subscribe_on_mouse_events ¶
subscribe_on_mouse_events() -> None
Source code
124 125 126 127 128 129 |
|
unsubscribe_from_mouse_events ¶
unsubscribe_from_mouse_events() -> None
Source code
131 132 133 134 135 136 |
|
update_labels ¶
update_labels(local_pos: QPoint) -> None
Source code
190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 |
|