例:関数A,Bがあり,ボタン1を押したらAを実行。ボタン2を押したらAとBを実行したい場合。
*argsは無くても良いかも?
def dual():
def A(*args):
print 'hello.'
def B(*args):
print 'bye.'
def AB(*args):
A()
B()
with pm.window( width=150 ):
pm.columnLayout( adjustableColumn=True )
pm.button(label='Button 1', command = pm.Callback(A))
pm.button(label='Button 2', command = pm.Callback(AB))