Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^3: Tk Listbox item padx

by AnomalousMonk (Archbishop)
on Apr 09, 2020 at 09:00 UTC ( [id://11115268]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Tk Listbox item padx
in thread Tk Listbox item padx

It was the mention of  padx in the OP title that brought  -ipadx -ipady to mind. These are pack options, but apparently  -ipadx doesn't do quite what I imagined; this

c:\@Work\Perl\monks>perl -wMstrict -le "use Tk; ;; my $mw = tkinit; ;; my $lb = $mw->Listbox->pack(-ipadx => 10); $lb->insert('end', $_) for 'four score and', 'seven years ago', 'our +fathers'; ;; MainLoop "
does not produce the left-hand border/indent I expected. Oh, well...


Give a man a fish:  <%-{-{-{-<

Replies are listed 'Best First'.
Re^4: Tk Listbox item padx
by kcott (Archbishop) on Apr 09, 2020 at 10:01 UTC

    The -ipad options are only available in a few places. Both the Tk::pack and Tk::grid geometry managers have them; I can't think of any others off the top of my head.

    The -pad options are more common. The geometry managers mentioned above, as well as Tk::form, have them. A number of widgets, such as Tk::Button and Tk::Text, also have them.

    — Ken

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2024-04-25 11:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found