def __init__(self, api, main_window):
super().__init__(main_window)
model = StylesModel(api)
selection_model = QtCore.QItemSelectionModel(model)
self._style_list = StyleList(api, model, selection_model, self)
self._style_editor = StyleEditor(model, selection_model, self)
if api.video.path:
self._preview_box = StylePreview(api, selection_model, self)
else:
self._preview_box = None
self._style_editor.setEnabled(False)
layout = QtWidgets.QHBoxLayout(self)
layout.addWidget(self._style_list)
layout.addWidget(self._style_editor)
if self._preview_box:
layout.addWidget(self._preview_box)
评论列表
文章目录