這是 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運行就有了上一篇的界面。