Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Tk Entry and ListBox width

by IB2017 (Pilgrim)
on Sep 23, 2019 at 09:55 UTC ( [id://11106571]=note: print w/replies, xml ) Need Help??


in reply to Tk Entry and ListBox width

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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11106571]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (4)
As of 2024-03-28 13:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found