davies has asked for the wisdom of the Perl Monks concerning the following question:
This produces everything bar the listbox. However, if I comment out either the label or the icon commands (or both), I get the listbox. I have tried changing the order of the commands, but it doesn't seem to make a difference. However, I haven't tried every possible combination. Please would someone point out my stupidity? My system configurationuse strict; use warnings; use diagnostics; use Tk; my $cboAgent; my $mw = MainWindow->new; $mw->geometry('200x400'); $mw->toplevel->resizable(0,0); $mw->Label(-text => 'Agent' ) ->place(-x => 0, -y => 0 ); ($cboAgent) = $mw->Scrolled('Listbox', -height => 20, -width => 10, -scrollbars => 'e') ->place(-x => 0, -y => 25 ); $mw->toplevel->iconbitmap('C:\Template\v3_5\TARDISdv\Tardis.ico'); MainLoop;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Tk oddity with Label, iconbitmap and listbox
by thundergnat (Deacon) on May 28, 2005 at 20:06 UTC | |
by davies (Monsignor) on May 28, 2005 at 21:15 UTC |