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