Pmw Megawidgets 0.8.5 - EntryField

bernie bernie at pacific.net.hk
Wed Feb 28 15:16:04 EST 2001


Sean wrote:

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

_e._entryFieldEntry.config( width = <what you need>)

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

Bernie




More information about the Python-list mailing list