Pmw EntryField question

Elliott Chapin echapin at sympatico.ca
Sat Apr 14 22:10:15 EDT 2001


--

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

Elliott Chapin         http:// www3.sympatico.ca/echapin
"Rick Pasotto" <rickp at telocity.com> wrote in message
news:slrn9dhn6g.eh.rickp at tc.niof.net...
> On Sat, 14 Apr 2001 22:56:28 GMT in comp.lang.python, Matthew Dixon
> Cowles wrote:
> > 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)
>
> This also works:
>
> e=Pmw.EntryField(root, entry_width=42)

One of those options they don't have room to mention in the doc's I've seen.
Thanks!

> e.pack()
>
> > The Pmw docs could be clearer about that sort of thing, I think.
>
> Definitely agree.
>
> --
> "Tyranny is any political system (whether absolute monarchy or fascism
> or communism) that does not recognize individual rights (which
> necessarily include property rights).  The over-throw of a political
> system by force is justified only when it is directed against tyranny;
> it is an act of self-defense against those who rule by force.  For
> example, the American Revolution."
> -- Ayn Rand
>    Rick Pasotto email: rickp at telocity.com





More information about the Python-list mailing list