Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
please help me on thisuse Tk; use Tk::JComboBox; my $ScreenSize = "300x200+0+0"; &Screen; MainLoop; sub Screen { $MainScreenObject = MainWindow->new(-background =>"white"); $MainScreenObject->geometry($ScreenSize); @TestList = ('12','123','12345'); $test= createComboBox('Test',5,100,50); $test1= createComboBox('Test1',5,100,100); } sub onTestComboBoxSelect { @TestList1 = ('1','3','125'); $test1->configure(-choices => \@TestList1 ,-state => 'normal'); + } sub onTest1ComboBoxSelect { } sub createComboBox { my($ComboBoxName,$Width,$x,$y) = @_; $ComboBoxName =~ s/\s+//g; my $ComboBoxObject = $MainScreenObject->JComboBox(-background =>'w +hite', -textvariable => \${$ComboBoxName}, -choices => \@{$ComboBoxName."List"}, -browsecmd =>\&{"on".$ComboBoxName."ComboBoxSelect"} +, -entrywidth =>$Width,)->place(-x=>$x,-y=>$y); return($ComboBoxObject); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: problem with Tk::JComboBox
by zentara (Cardinal) on Sep 22, 2008 at 13:16 UTC | |
|
Re: problem with Tk::JComboBox
by jethro (Monsignor) on Sep 22, 2008 at 16:09 UTC | |
by zentara (Cardinal) on Sep 22, 2008 at 18:24 UTC | |
by jethro (Monsignor) on Sep 22, 2008 at 19:08 UTC | |
by zentara (Cardinal) on Sep 22, 2008 at 20:40 UTC | |
by jethro (Monsignor) on Sep 22, 2008 at 23:06 UTC | |
| |
by Anonymous Monk on Sep 27, 2008 at 07:07 UTC | |
by jethro (Monsignor) on Sep 27, 2008 at 16:05 UTC |