Example Code:
def printFoo():
print 'foo'
win = Window()
col = columnLayout()
but = Button()
but.setCommand(Callback(printFoo))
cmd = but.getCommand()
# Result: #
but.setCommand('Callback(printFoo)')
cmd = but.getCommand()
# Result: Callback(printFoo) #
#however, turning the command into a string prevents it from working
is this a PyMel bug?
--
http://groups.google.com/group/python_inside_maya
