这是 Max2017中做的补充,Max2016没有这些
import pysideuic
from PySide import QtCore, QtGui
fname = "F:\\ExpressiongMirror.ui"
formt, btype = MaxPlus.LoadUiType(fname)
class TestWidget(btype, formt):
def __init__(self):
btype.__init__(self)
formt.__init__(self)
self.setupUi(self)
def ResetXFormToPolyClicked(self):
print "ResetXFormToPolyClicked"
def GetSampleClicked(self):
print "GetSampleClicked"
def MirrorVertexClicked(self):
print "MirrorVertexClicked"
def GetLocalSampleClicked(self):
print "GetLocalSampleClicked"
def MirrorLocalVertexClicked(self):
print "MirrorLocalVertexClicked"
form = TestWidget()
form.show()
因为Max2017支持Py文件的直接运行,所以Ctrl+E运行就有了上一篇的界面。