It's a question about pymel.
If a button is pressed, please tell me the way to call saves and load.
↓It was written like mel, but the following error goes out.
# Error: NameError: file <maya console> line 1: name 'saves' is not defined 
# 

def dual():
    def saves():
        print 'hello.'

    def load():
        print 'bye.'

    with pm.window( width=150 ):
        pm.columnLayout( adjustableColumn=True )
        pm.button(label='Button 1', command='saves();load()')
        
dual()

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/80ef3762-0d7b-4852-9118-061eebadb2be%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to