Made tracks return an already existing object when they get created with a path of an already existing track object.
17 lines
383 B
Python
17 lines
383 B
Python
#!/usr/bin/python3
|
|
|
|
from PyQt6.QtWidgets import QDockWidget
|
|
from wobuzz.ui.library import LibraryWidget
|
|
|
|
|
|
class LibraryDock(QDockWidget):
|
|
def __init__(self, library, parent=None):
|
|
super().__init__(parent)
|
|
|
|
self.library = library
|
|
|
|
self.setAcceptDrops(True)
|
|
|
|
self.library_widget = Library(library, self)
|
|
self.setWidget(self.library_widget)
|
|
|