forked from Wobbl/Wobuzz
Implemented displaying of tracks in a QTreeWidget.
This commit is contained in:
parent
10c36b37a1
commit
af2b7b6c8d
11 changed files with 90 additions and 19 deletions
19
wobuzz/ui/playlist.py
Normal file
19
wobuzz/ui/playlist.py
Normal file
|
@ -0,0 +1,19 @@
|
|||
#!/usr/bin/python3
|
||||
|
||||
from PyQt6.QtWidgets import QTreeWidget
|
||||
|
||||
|
||||
class PlaylistView(QTreeWidget):
|
||||
def __init__(self, *args, **kwargs):
|
||||
super().__init__(*args, **kwargs)
|
||||
|
||||
self.setColumnCount(4)
|
||||
|
||||
headers = [
|
||||
"#",
|
||||
"Title",
|
||||
"Artist",
|
||||
"Album"
|
||||
]
|
||||
|
||||
self.setHeaderLabels(headers)
|
Loading…
Add table
Add a link
Reference in a new issue