def __init__(self, parent=None):
        QFrame.__init__(self, parent)
        self.ui = Ui_frame_tab_video()
        self.ui.setupUi(self)
        self.screen = parent
        self.listener = Listener(parent, self)
        self.connectSignals()

        interface.tab_video.fillElementsFromConfig(self,
                                                   self.screen.config)
class Frame(QFrame):

    def __init__(self, parent=None):
        QFrame.__init__(self, parent)
        self.ui = Ui_frame_tab_video()
        self.ui.setupUi(self)
        self.screen = parent
        self.listener = Listener(parent, self)
        self.connectSignals()

        interface.tab_video.fillElementsFromConfig(self,
                                                   self.screen.config)


    def connectSignals(self):
        self.ui.chk_vidprefdur.stateChanged.connect(self.listener.useDuration)
        self.ui.cmb_fps.currentIndexChanged.connect(
            self.listener.fpsComboChanged)
        self.ui.btn_browsevideofile.clicked.connect(self.listener.locateVideo)
        self.ui.btn_vidanalyze.clicked.connect(self.listener.scanVideo)
        self.ui.btn_loadsubs.clicked.connect(self.listener.loadExternalSubs)
        self.ui.btn_extract_queue.clicked.connect(self.listener.addToQueue)
        self.ui.btn_extract_exe.clicked.connect(self.listener.extractFrames)