def quickLayout(self, type, ui_name=""):
the_layout = QtGui.QVBoxLayout()
if type == "form":
the_layout = QtGui.QFormLayout()
the_layout.setLabelAlignment(QtCore.Qt.AlignLeft)
the_layout.setFieldGrowthPolicy(QtGui.QFormLayout.AllNonFixedFieldsGrow)
elif type == "grid":
the_layout = QtGui.QGridLayout()
elif type == "hbox":
the_layout = QtGui.QHBoxLayout()
the_layout.setAlignment(QtCore.Qt.AlignTop)
else:
the_layout = QtGui.QVBoxLayout()
the_layout.setAlignment(QtCore.Qt.AlignTop)
if ui_name != "":
self.uiList[ui_name] = the_layout
return the_layout
UITranslator_v1.0.py 文件源码
python
阅读 34
收藏 0
点赞 0
评论 0
评论列表
文章目录