Wobuzz/wobuzz/ui/library.py

23 lines
619 B
Python

#!/usr/bin/python3
from PyQt6.QtWidgets import QToolBox, QLabel, QFrame, QTabWidget
class Library(QToolBox):
def __init__(self, parent=None):
super().__init__(parent)
self.setFrameShape(QFrame.Shape.Box)
self.setFrameShadow(QFrame.Shadow.Sunken)
playlist_tabs = QTabWidget()
self.addItem(playlist_tabs, "Playlists")
label = QLabel()
self.addItem(label, "Genres")
label = QLabel()
self.addItem(label, "Albums")
label = QLabel()
self.addItem(label, "Artists")
label = QLabel()
self.addItem(label, "Tracks")