Pmw EntryField question

Matthew Dixon Cowles matt at mondoinfo.com
Sat Apr 14 18:56:28 EDT 2001


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)
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