修改界面
This commit is contained in:
9
ui/components/widget.py
Normal file
9
ui/components/widget.py
Normal file
@@ -0,0 +1,9 @@
|
||||
from PySide6.QtWidgets import QFrame
|
||||
|
||||
|
||||
class Widget(QFrame):
|
||||
|
||||
def __init__(self, key: str, parent=None):
|
||||
super().__init__(parent=parent)
|
||||
# 必须给子界面设置全局唯一的对象名
|
||||
self.setObjectName(key.replace(' ', '-'))
|
||||
Reference in New Issue
Block a user