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

Method __init__

gui_qt6/components.py:135–146  ·  view source on GitHub ↗
(self, parent=None)

Source from the content-addressed store, hash-verified

133 """可滚动框架组件"""
134
135 def __init__(self, parent=None):
136 super().__init__(parent)
137 self.setWidgetResizable(True)
138 self.setHorizontalScrollBarPolicy(Qt.ScrollBarPolicy.ScrollBarAlwaysOff)
139 self.setVerticalScrollBarPolicy(Qt.ScrollBarPolicy.ScrollBarAsNeeded)
140
141 # 创建内容widget
142 self.content_widget = QWidget()
143 self.content_layout = QVBoxLayout(self.content_widget)
144 self.content_layout.setContentsMargins(0, 0, 0, 0)
145
146 self.setWidget(self.content_widget)
147
148 def add_widget(self, widget):
149 """添加widget到滚动区域"""

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected