Skip to content

VideoSample

⋔ Inheritance diagram

graph TD
  1473367139936["custom_widgets.VideoSample"]
  140713234304496["builtins.object"]
  140713234304496 --> 1473367139936

🛈 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