Re: [Maya-Python] Command flag in symbolButton keeps erroring for me

2017-03-13 Thread Alok Gandhi
> > I will get `# Error: TypeError: file line 9: Invalid > arguments for flag 'changeCommand'. Expected string or function, got > NoneType # ` > You need to pass the function object to change commands, currently you are passing the result of calling greet(). I think this should work for you:

[Maya-Python] Command flag in symbolButton keeps erroring for me

2017-03-13 Thread likage
I am trying out using maya symbolcheckbox and I run into a few issue. In my actual code, I have a 'add', 'remove' and 'clear' button and so if any of these 3 buttons are clicked onto, it will called its own functions. In my code, it was written something as follow: self.btn_add =