def main():
#MaxPlus.FileManager.Reset(True)
w = QtGui.QWidget()
MaxPlus.AttachQWidgetToMax(w)
if _GCProtector.widgets :
w = _GCProtector.widgets
print w
w.resize(250, 100)
w.setWindowTitle('Window')
_GCProtector.widgets = w
w.show()
main_layout = QtGui.QVBoxLayout()
label = QtGui.QLabel("Click button to create a cylinder in the scene")
main_layout.addWidget(label)
cylinder_btn = QtGui.QPushButton("Cylinder")
main_layout.addWidget(cylinder_btn)
w.setLayout(main_layout)
cylinder_btn.clicked.connect(make_cylinder)
评论列表
文章目录