Hi all!
I've got this code and it doesnt works. I can't pass args from button
command to printAnything function :S.
what am I doing wrong?

Thanks!
---

*import maya.cmds as cmds

class foo(object):
    def __init__(self):

        if cmds.window("ventana", exists=1):
            cmds.deleteUI("ventana", window=1)

        cmds.window('ventana')
        cmds.columnLayout('colLayout')
        cmds.button('boton', c=self.printAnything("Hi python"))
        cmds.showWindow('ventana')

    def **printAnything**(self, **thing**):
        print thing

f = foo()*

---

--~--~---------~--~----~------------~-------~--~----~
Yours,
Maya-Python Club Team.
-~----------~----~----~----~------~----~------~--~---

  • ... Francis Vega Castillo
    • ... kurian os ™ ®കോപ്പിയടിച്ചാല്©ഗോതമ്പുണ്ട!
      • ... kurian os ™ ®കോപ്പിയടിച്ചാല്©ഗോതമ്പുണ്ട!
        • ... Francis Vega Castillo

Reply via email to