wonambi.widgets.video module

Module to show video, if the file format supports it.

class wonambi.widgets.video.ConfigVideo[source]

Bases: Config

create_config()[source]

Placeholder: it’ll be replaced with actual layout.

class wonambi.widgets.video.Video(parent)[source]

Bases: QWidget

Widget containing the movie, if available.

parent

the main window.

Type:

instance of QMainWindow

beg_diff

time in ms of the beginning of the first video

Type:

float

end_diff

time in ms of the end of the last video

Type:

float

cnt_video

index of the current mediasource

Type:

int

n_video

total number of videos to play

Type:

int

video

the video to show.

Type:

instance of MediaObject

idx_button

button which starts and stops the video.

Type:

instance of QPushButton

check_if_finished()[source]
create_video()[source]

Create video widget.

next_video(_)[source]

Also runs when file is loaded, so index starts at 2.

start_stop_video()[source]

Start and stop the video, and change the button.

stop_video(tick)[source]

Stop video if tick is more than the end, only for last file.

Parameters:
  • tick (int) – time in ms from the beginning of the file

  • useless?

update_video()[source]

Read list of files, convert to video time, and add video to queue.