pysidetest.py 文件源码

python
阅读 19 收藏 0 点赞 0 评论 0

项目:3dsmaxTools 作者: col-one 项目源码 文件源码
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)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号