MCPcopy Create free account
hub / github.com/BasicProtein/AugmentCode-Free / WarningFrame

Class WarningFrame

gui_qt6/components.py:96–113  ·  view source on GitHub ↗

警告信息框组件

Source from the content-addressed store, hash-verified

94
95
96class WarningFrame(QFrame):
97 """警告信息框组件"""
98
99 def __init__(self, text: str, parent=None):
100 super().__init__(parent)
101 self._setup_frame(text)
102
103 def _setup_frame(self, text: str):
104 """设置警告框"""
105 layout = QVBoxLayout(self)
106 layout.setContentsMargins(12, 12, 12, 12)
107
108 warning_label = QLabel(text)
109 warning_label.setFont(get_default_font(9))
110 warning_label.setProperty("class", "warning")
111 warning_label.setWordWrap(True)
112
113 layout.addWidget(warning_label)
114
115
116class SectionFrame(QFrame):

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected