The methods names are long-form:
myWindow.setTitle("something")
myWindow.setHeight(56)
print myWindow.getTitle()
(all query flags are turned into 'get' methods, all edit flags are turned
into 'set' methods)
- Ofer
www.mrbroken.com
On Tue, Feb 8, 2011 at 6:17 AM, alireza fattahi <[email protected]>wrote:
> Hi people i'm new to pymel and i glad to be here.
> For now just one question.
>
> Why in pymel i can't assign a piece of ui to a variable and call its
> method and variables by dot notation and i have to pass parameter to
> it like old python?
>
> example:
>
> I want to:
> myWindow=window(t="rt",wh=(56,56))
> myWindow.t("mehran")
>
> or myWindow.t="something"
>
>
> myWindow is now an object why i can't change its attr that way?
>
> or
>
> textFi= floatFieldGrp
>
> --
> http://groups.google.com/group/python_inside_maya
>
--
http://groups.google.com/group/python_inside_maya