完善提问模块
This commit is contained in:
16
ui/components/window.py
Normal file
16
ui/components/window.py
Normal file
@@ -0,0 +1,16 @@
|
||||
from PySide6.QtWidgets import QHBoxLayout
|
||||
from qfluentwidgets import FluentTitleBar
|
||||
from qfluentwidgets.window.fluent_window import FluentWindowBase
|
||||
|
||||
|
||||
class MyWindow(FluentWindowBase):
|
||||
def __init__(self, parent=None):
|
||||
super().__init__(parent)
|
||||
self.setTitleBar(FluentTitleBar(self))
|
||||
|
||||
self.widgetLayout = QHBoxLayout(self)
|
||||
self.widgetLayout.setContentsMargins(0, 48, 0, 0)
|
||||
self.hBoxLayout.addLayout(self.widgetLayout)
|
||||
|
||||
self.titleBar.raise_()
|
||||
self.showMaximized()
|
||||
Reference in New Issue
Block a user