It's hard to say exactly without knowing what Entry.get() returns.  But 
be aware that all PyQt APIs return QStrings instead of regular python 
strings, and despite attempts to make that difference invisible, it 
often becomes a source of problems.

Oftentimes those problems are easily dealt with by turning them into 
regular python strings by calling str(myQString).

rudi wrote:
> Hi,
> So I have built a GUI (for a rig generator).In that GUI I have an text
> entry for the name of the character and a button with the command that
> calls an external script.Here is an extract of the code:
> 
> #----charNameGrp
> charNameGrp=pmw.Group(setupTab,tag_text="character's
> name",ring_borderwidth=2,tag_font=("Helvetica", "8", "bold"))
>     #----charNameEntry
> charNameEntry=Entry(charNameGrp.interior(),width=22,borderwidth=1)
> charName=charNameEntry.get()
>     #button
> createCharButton=Button(createStructureGrp.interior
> (),borderwidth=1,image=skeleton,command=makeSkeleton(charName))
> 
> 
> Now I have another script not included in the GUI, to make the
> joint.Here is the extract:
> def makeSkeleton(charName):
>     #1-create joints
>     joint(name=(charName + "_c_hip_jnt_H"),p=(0,100,0))
> 
> 
> So now I open my GUI and in the entry lets say that I wright: Bob.
> The problem is that when I click on the button I get a joint named
> _c_hip_jnt_H
> when it is supposed to be
> Bob_c_hip_H
> 
> any idea what am I doing wrong?Why the entry text doesn´t appear?
> Thx
> 

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

Reply via email to