in reply to Make Tk Optionmenu same height as Button
This works for me using the default fonts:
#! perl -slw use strict; use Tk; my $mw = MainWindow->new(); my $om = $mw->Optionmenu( -options => [ [fred => 1], [bill => 2] ] )->pack( -side=> 'left' ); my @btns = map { $mw->Button( -text => $_, -pady => 2 )->pack( -side=> 'left' ); } 1 .. 8; MainLoop;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Make Tk Optionmenu same height as Button
by chessgui (Scribe) on Jan 25, 2012 at 03:15 UTC | |
by BrowserUk (Patriarch) on Jan 25, 2012 at 06:08 UTC | |
by Anonymous Monk on Jan 25, 2012 at 03:33 UTC | |
by chessgui (Scribe) on Jan 25, 2012 at 03:40 UTC | |
by planetscape (Chancellor) on Jan 25, 2012 at 13:11 UTC |