def __init__(self, parent: QtWidgets.QWidget, threadpool_obj: QtCore.QThreadPool = None) -> None: super(CreateVideoWidget, self).__init__(parent) config.load_ui(self) self.__parent: QtWidgets.QWidget = parent self.__threadpool_obj = threadpool_obj self.__video_data: Dict[str, dict] = {} self.__disable_widgets = config.set_disabled_widgets( self.refresh_button, self.render_all_button, state=True) resolution_types: List[int] = [ config.VIDEO_RESOLUTION.R144P, config.VIDEO_RESOLUTION.R240P, config.VIDEO_RESOLUTION.R360P, config.VIDEO_RESOLUTION.R480P, config.VIDEO_RESOLUTION.R720P, config.VIDEO_RESOLUTION.R1080P ] for res in resolution_types: self.video_resolution_combo.addItem( config.VIDEO_RESOLUTION.str(res), config.VIDEO_RESOLUTION.resolution(res)) self.video_path_button.clicked.connect(self.get_video_path) self.intro_path_button.clicked.connect(self.get_intro_path) self.outro_path_button.clicked.connect(self.get_outro_path) self.refresh_button.clicked.connect(self.refresh_video_list) self.render_all_button.clicked.connect(self.do_render_all_video)
def __init__(self, parent: QtWidgets.QWidget) -> None: super(InstagramLooterWidget, self).__init__(parent) config.load_ui(self) self.__parent = parent self.loot_button.clicked.connect(self.start_looting)
def __init__(self, parent: QtWidgets.QWidget, label_form: str = None, placeholder: str = None) -> None: super(Form, self).__init__() config.load_ui(self) self.__parent = parent self.__label_form = label_form + ":" self.__placeholder = placeholder self.form_label.setText(self.__label_form)
def __init__(self, parent: QtWidgets.QWidget, input_title: str, placeholder: str = None) -> None: super(LooterFormWidget, self).__init__(parent) config.load_ui(self) self.__parent = parent self.__input_title = input_title self.form_name_label.setText(self.__input_title) self.form_check.clicked.connect(self._setToogleInput)
def __init__(self, parent: QtWidgets.QWidget, title_group: str = None, form_objs: list = []) -> None: super(GroupForm, self).__init__(parent) config.load_ui(self) self.__parent = parent self.__title_group = title_group + ":" self.__form_objs = form_objs self.setTitle(self.__title_group) self.add_forms(*self.__form_objs)
def __init__(self, parent: QtWidgets.QWidget, title: str = None, widgets: list = None) -> None: super(GroupFormWidget, self).__init__(parent) config.load_ui(self) self.__parent = parent self.__title = title + ":" self.__widgets = widgets self.form_group.setTitle(self.__title) if self.__widgets: config.append_widget(layout=self.form_group_layout, widgets=self.__widgets)
def __init__(self) -> None: super(MainWindow, self).__init__() config.load_ui(self) self.thread_pool: QtCore.QThreadPool = thread.ThreadPool(parent=self) self.setWindowTitle("WML v0.1.0: Nasilotek") self.main_tabwidget.setTabText(0, "WML") # self.main_tabwidget.setTabsClosable(True) self.__social_looter_tab = tabbar_widget.TabBar( parent=self.main_tabwidget, tab_title="Instagram Looter", tab_widget=social_widget.InstagramLooterWidget(self)) self.__create_video_tab = tabbar_widget.TabBar( parent=self.main_tabwidget, tab_title="Create Video", tab_widget=video_widget.CreateVideoWidget( parent=self, threadpool_obj=self.thread_pool))
def __init__(self, parent: QtWidgets.QListWidget, video_name: str = None, video_path: str = None, video_files: List[str] = None, video_intro: str = None, video_outro: str = None, threadpool_obj: QtCore.QThreadPool = None) -> None: super(VideoItemWidget, self).__init__(parent) config.load_ui(self) self.__parent: QtWidgets.QListWidget = parent self.__video_name: str = video_name self.__video_path: str = video_path self.__video_files: List[str] = video_files self.__video_intro: str = video_intro self.__video_outro: str = video_outro self.__render_video_obj: video_editor.RenderVideo self.__threadpool_obj: QtCore.QThreadPool = threadpool_obj self.__setup_video_item() self.reload_button.clicked.connect(self.__setup_video_item) self.render_button.clicked.connect(self.render_video) self.render_video_signal.connect(self.render_video)
def __init__(self, parent: QtWidgets.QWidget) -> None: super(VideoPreviewWidget, self).__init__(parent) config.load_ui(self) self.__parent: QtWidgets.QWidget = parent