Pmw EntryField question

Elliott Chapin echapin at sympatico.ca
Sat Apr 14 22:07:42 EDT 2001


--

---------------------------------------------------------------

Elliott Chapin         http:// www3.sympatico.ca/echapin
"Matthew Dixon Cowles" <matt at mondoinfo.com> wrote in message
news:slrn9dhlcs.12k.matt at happy-hour.mondoinfo.com...
> On Sat, 14 Apr 2001 22:29:34 GMT, Elliott Chapin
> <echapin at sympatico.ca> wrote:
>
> >How to control the width? References I have don't seem to hold the
> >key. I'm pretty new - wondering if I have to make a new class to do
> >it.
>
> Elliott,
> As with many Pmw widgets, you need to explicitly configure the
> particular component. Something like this should work for you:
>
> e=Pmw.EntryField(root)
> e.component("entry").configure(width=42)

Thanks a lot! this line exposes an approach of which I was unaware.

> e.pack(side=TOP)
>
> The Pmw docs could be clearer about that sort of thing, I think.
>
> Regards,
> Matt





More information about the Python-list mailing list