A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-list/2001-April/087291.html below:

Pmw EntryField question

Pmw EntryField questionRick Pasotto rickp at telocity.com
Sat Apr 14 19:27:12 EDT 2001
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)
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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4