Made some gui improvements.

This commit is contained in:
The Wobbler 2024-12-23 16:02:22 +01:00
parent 368bbbe6f8
commit 99934e73b7
3 changed files with 8 additions and 8 deletions

View file

@ -1,6 +1,6 @@
#!/usr/bin/python3 #!/usr/bin/python3
from PyQt6.QtWidgets import QToolBox, QLabel, QFrame from PyQt6.QtWidgets import QToolBox, QLabel, QFrame, QTabWidget
class Library(QToolBox): class Library(QToolBox):
@ -10,8 +10,8 @@ class Library(QToolBox):
self.setFrameShape(QFrame.Shape.Box) self.setFrameShape(QFrame.Shape.Box)
self.setFrameShadow(QFrame.Shadow.Sunken) self.setFrameShadow(QFrame.Shadow.Sunken)
label = QLabel() playlist_tabs = QTabWidget()
self.addItem(label, "Playlists") self.addItem(playlist_tabs, "Playlists")
label = QLabel() label = QLabel()
self.addItem(label, "Genres") self.addItem(label, "Genres")
label = QLabel() label = QLabel()

View file

@ -1,6 +1,6 @@
#!/usr/bin/python3 #!/usr/bin/python3
from PyQt6.QtWidgets import QWidget, QFrame, QDockWidget, QGridLayout from PyQt6.QtWidgets import QWidget, QGridLayout, QSizePolicy
from .track_control import TrackControl from .track_control import TrackControl
from .lines import HLine from .lines import HLine
@ -12,10 +12,10 @@ class MainContainer(QWidget):
self.layout = QGridLayout() self.layout = QGridLayout()
self.setLayout(self.layout) self.setLayout(self.layout)
self.layout.addWidget(HLine(self))
self.track_control = TrackControl(self) self.track_control = TrackControl(self)
self.layout.addWidget(self.track_control) self.layout.addWidget(self.track_control)
self.layout.addWidget(HLine(self)) self.layout.addWidget(HLine(self)) # track_control separator line
self.setSizePolicy(QSizePolicy.Policy.Preferred, QSizePolicy.Policy.Fixed)

View file

@ -2,7 +2,7 @@
from PyQt6.QtCore import Qt from PyQt6.QtCore import Qt
from PyQt6.QtGui import QIcon from PyQt6.QtGui import QIcon
from PyQt6.QtWidgets import QToolBar, QLabel, QSlider from PyQt6.QtWidgets import QToolBar, QLabel
from .track_progress_slider import TrackProgressSlider from .track_progress_slider import TrackProgressSlider