VideoSample
🛈 DocStrings
Source code in prettyqt/custom_widgets/timeline.py
| class VideoSample:
def __init__(
self,
duration: float,
color: datatypes.ColorType = "yellow",
picture: gui.QPixmap | None = None,
):
self.duration = duration
self.color = colors.get_color(color) # Floating color
self.def_color = colors.get_color(color) # DefaultColor
self.picture = None if picture is None else picture.scaledToHeight(45)
self.start_pos = 0.0 # Initial position
self.end_pos = self.duration # End position
|
:fa-brands-github: Show source on GitHub