def LayoutDesign(self):
self.widget = QtGui.QWidget()
self.layout = QtGui.QGridLayout(self.widget)
self.layout.setSpacing(1)
self.layout.setHorizontalSpacing(0)
self.layout.setVerticalSpacing(0)
self.scroll = QtGui.QScrollArea()
self.scroll.setWidgetResizable(True)
self.scroll.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
self.scroll.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOn)
self.scroll.setWidget(self.widget)
self.LayoutChangesOnSliceChange(self.Electrode.slices)
self.layout.addWidget(self.CustomWebView, 1, 0,1,25, QtCore.Qt.AlignLeft)
self.layout.setContentsMargins(0, 0, 0, 0)
self.setContentsMargins(0, 0, 0, 0)
self.grid1 = QtGui.QGridLayout()
self.grid1.addWidget(self.scroll,3,0)
self.setLayout(self.grid1)
SmallMulitplesLayoutDesign.py 文件源码
python
阅读 20
收藏 0
点赞 0
评论 0
评论列表
文章目录