Pmw Megawidgets 0.8.5 - EntryField

Sean seandc at att.net
Tue Feb 27 16:02:25 EST 2001


In this fragment (creating a date-type EntryField), I have used
the undocumented - in Pmw - paramater 'label_width' successfully:

_e = Pmw.EntryField(Master, 
		    labelpos = 'w',
		    label_text = f[0],
		    label_width = 12,
		    value = f[4][0:4] + '/' + f[4][4:6] + '/' + f[4][6:8],
		    validate = {'validator' : 'date', 'format' : 'ymd' },
		    )

*** [Q] Is there any way to control the width of the underlying Entry
widget?

In every example I've seen, all Entry widgets grouped in one dialog
have
the same width....presumably set by default to be the longest Entry in
the group.

Thanks.

Sean



More information about the Python-list mailing list