34 lines
989 B
Python
34 lines
989 B
Python
#!/usr/bin/python3
|
|
|
|
from PyQt6.QtCore import Qt
|
|
from PyQt6.QtWidgets import QWidget, QDockWidget, QTabWidget, QPushButton, QVBoxLayout
|
|
from .file import FileSettings
|
|
|
|
|
|
class Settings(QDockWidget):
|
|
def __init__(self, parent=None):
|
|
super().__init__(parent)
|
|
|
|
self.setAllowedAreas(
|
|
Qt.DockWidgetArea.LeftDockWidgetArea |
|
|
Qt.DockWidgetArea.RightDockWidgetArea |
|
|
Qt.DockWidgetArea.BottomDockWidgetArea
|
|
)
|
|
|
|
self.setWindowTitle("Settings")
|
|
|
|
self.content = QWidget(self)
|
|
self.content_layout = QVBoxLayout()
|
|
self.content.setLayout(self.content_layout)
|
|
|
|
self.tabs = QTabWidget(self.content)
|
|
|
|
self.file_settings = FileSettings()
|
|
self.tabs.addTab(self.file_settings, "Files")
|
|
self.content_layout.addWidget(self.tabs)
|
|
|
|
self.save_button = QPushButton("&Save", self.content)
|
|
self.content_layout.addWidget(self.save_button)
|
|
|
|
self.setWidget(self.content)
|
|
|