2024-12-28 20:41:18 +01:00
|
|
|
#!/usr/bin/python3
|
|
|
|
|
|
|
|
from PyQt6.QtWidgets import QTreeWidget
|
|
|
|
|
|
|
|
|
|
|
|
class PlaylistView(QTreeWidget):
|
|
|
|
def __init__(self, *args, **kwargs):
|
|
|
|
super().__init__(*args, **kwargs)
|
|
|
|
|
2024-12-29 18:55:55 +01:00
|
|
|
self.setColumnCount(4)
|
2024-12-28 20:41:18 +01:00
|
|
|
|
|
|
|
headers = [
|
2024-12-29 18:55:55 +01:00
|
|
|
"",
|
2024-12-28 20:41:18 +01:00
|
|
|
"#",
|
|
|
|
"Title",
|
|
|
|
"Artist",
|
2024-12-29 15:10:51 +01:00
|
|
|
"Album",
|
|
|
|
"# Custom Sorting"
|
2024-12-28 20:41:18 +01:00
|
|
|
]
|
|
|
|
|
|
|
|
self.setHeaderLabels(headers)
|