16 lines
448 B
Python
16 lines
448 B
Python
|
||
from PySide6.QtWidgets import QFrame
|
||
from .tool_card_ui import Ui_FrameToolCard
|
||
|
||
|
||
class ToolCard(QFrame, Ui_FrameToolCard):
|
||
"""工具卡片类
|
||
|
||
继承自 QFrame(Qt 帧基类)和 Ui_FrameToolCard(Qt Designer 生成的 UI 界面)
|
||
负责显示工具的卡片界面,包含工具的图标、名称和描述。
|
||
"""
|
||
def __init__(self, parent = None) -> None:
|
||
super().__init__(parent)
|
||
self.setupUi(self)
|
||
|