Welcome to the Monastery | |
PerlMonks |
Re: Tk Entry and ListBox widthby IB2017 (Pilgrim) |
on Sep 23, 2019 at 09:55 UTC ( [id://11106571]=note: print w/replies, xml ) | Need Help?? |
To get the size in pixels of a widget, use: $EntryWidget->width;UPDATED: As far as the ListBox is concerned, set geometry of the containing widget (if a Toplevel window), which allows for setting size in pixels, with: $window->geometry();or simply play with the options (-extend and -fill) of pack for both the containing widget (probably a Frame) and of the ListBox.
In Section
Seekers of Perl Wisdom
|
|