Hi,
Okey,I have read the docs and changed the code to:

import rh_makeSkeleton
createCharButton=Button(createStructureGrp.interior
(),borderwidth=1,image=skeleton,command=Callback
(rh_makeSkeleton.makeSkeleton,charName))

The error I am getting now is
    createCharButton.place(x=38,y=2,height=95,width=80)
AttributeError: 'Button' object has no attribute 'place'

¿¿¿??? The GUI was perfectly working before.Why is Callback afecting
the button widget?
I am using Tkinter and the Pmw modules to build the UI.



On 2 dic, 02:33, chadrik <[email protected]> wrote:
> > Oftentimes those problems are easily dealt with by turning them into  
> > regular python strings by calling str(myQString).
>
> this is a MEL GUI not PyQt.  the issue is that 'makeSkeleton' is being  
> executed when it is being assigned to the button command flag.
>
> > createCharButton=Button([...]command=makeSkeleton(charName))
>
> the button needs to receive a 'live' callable object.  i'd be  
> surprised if the button does anything at all because makeSkeleton  
> returns None and that None value is what is assigned to the button  
> callback, not the function. you'll want to use the pymel Callback  
> class to resolve this.  the docs i sent out should clear everything up.
>
> -chad

-- 
http://groups.google.com/group/python_inside_maya

Reply via email to