MCPcopy Index your code
hub / github.com/BasicProtein/AugmentCode-Free / _setup_frame

Method _setup_frame

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

设置警告框

(self, text: str)

Source from the content-addressed store, hash-verified

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

__init__Method · 0.95

Calls 1

get_default_fontFunction · 0.85

Tested by

no test coverage detected