Item selection
This commit is contained in:
parent
1df8f015c7
commit
733a9b61ac
@ -19,7 +19,7 @@ class MainWindow(QWidget, Ui_MainWindow):
|
||||
|
||||
|
||||
def setupConnections(self):
|
||||
pass
|
||||
self.media_tracks_list_widget.itemClicked.connect(self.popuplate_content)
|
||||
|
||||
|
||||
def dragEnterEvent(self, event):
|
||||
@ -39,10 +39,16 @@ class MainWindow(QWidget, Ui_MainWindow):
|
||||
|
||||
self.setWindowTitle(f"{self.filePath} - {self.windowTitle}")
|
||||
self.populate_tabs()
|
||||
item = self.media_tracks_list_widget.item(0).setSelected(True)
|
||||
self.popuplate_content()
|
||||
|
||||
|
||||
def populate_tabs(self, path = ''):
|
||||
def populate_tabs(self):
|
||||
self.media_tracks_list_widget.clear()
|
||||
self.media_tracks_list_widget.addItems(self.fileCmds.tabsList)
|
||||
text = self.fileCmds.tabsContent["Basic"]
|
||||
|
||||
|
||||
def popuplate_content(self):
|
||||
itemSelected = self.media_tracks_list_widget.selectedItems()[0].text()
|
||||
text = self.fileCmds.tabsContent[itemSelected]
|
||||
self.media_detail_plain_text_edit.setPlainText(text)
|
Loading…
x
Reference in New Issue
Block a user