forked from Wobbl/Wobuzz
Added a button that adds a playlist.
This commit is contained in:
parent
1007ac045f
commit
31e72c25d3
6 changed files with 57 additions and 9 deletions
|
@ -6,15 +6,17 @@ from .library import Library
|
|||
|
||||
|
||||
class LibraryDock(QDockWidget):
|
||||
def __init__(self, parent=None):
|
||||
def __init__(self, library, parent=None):
|
||||
super().__init__(parent)
|
||||
|
||||
self.library = library
|
||||
|
||||
self.setAllowedAreas(
|
||||
Qt.DockWidgetArea.LeftDockWidgetArea |
|
||||
Qt.DockWidgetArea.RightDockWidgetArea |
|
||||
Qt.DockWidgetArea.BottomDockWidgetArea
|
||||
)
|
||||
|
||||
self.library = Library(self)
|
||||
self.setWidget(self.library)
|
||||
self.library_widget = Library(library, self)
|
||||
self.setWidget(self.library_widget)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue