Wobuzz/wobuzz/ui/library.py

24 lines
619 B
Python
Raw Normal View History

2024-12-22 20:52:49 +01:00
#!/usr/bin/python3
2024-12-23 16:02:22 +01:00
from PyQt6.QtWidgets import QToolBox, QLabel, QFrame, QTabWidget
2024-12-22 20:52:49 +01:00
class Library(QToolBox):
def __init__(self, parent=None):
super().__init__(parent)
2024-12-22 21:20:18 +01:00
self.setFrameShape(QFrame.Shape.Box)
self.setFrameShadow(QFrame.Shadow.Sunken)
2024-12-23 16:02:22 +01:00
playlist_tabs = QTabWidget()
self.addItem(playlist_tabs, "Playlists")
2024-12-22 20:52:49 +01:00
label = QLabel()
self.addItem(label, "Genres")
label = QLabel()
self.addItem(label, "Albums")
label = QLabel()
self.addItem(label, "Artists")
label = QLabel()
self.addItem(label, "Tracks")