mortbarsky has asked for the wisdom of the Perl Monks concerning the following question:
I await knowledge...... Thanks muchly.#Loop through all of the drill layers GUI.... my $exitbutton = $mw->Button(-text=>'Exit',-command=> sub { &Exit },-f +ont=> $fontname,-activebackground => "red")->pack(-pady=> '0.1c',-sid +e => 'bottom'); $balloon->attach($exitbutton, -msg => "Exit the program",-balloonposit +ion => 'mouse'); my $helpbutton = $mw->Button(-text=>'Help',-command=> sub { &Help },-f +ont=> $fontname,-activebackground => "#999900")->pack(-side =>'bottom +',-pady=> '0.1c'); my $create = $mw->Button(-text=>' Create 9 hole ',-command=> sub { &ad +d_ldi},-font=> $fontname,-activebackground => $doitcolor)->pack(-side +=>'left',-expand=>1,-fill=>'none',-pady=> '0.1c',-padx=>'0.3c'); $balloon->attach($create, -msg => "Add LDI coupons to the checked +off layers",-balloonposition => 'mouse'); my $combine = $mw->Button(-text=>'Combine',-command=> sub { &combine_l +di},-font=> $fontname,-activebackground => $doitcolor)->pack(-expand= +>1,-fill=>'none',-side => 'right',-pady=> '0.1c'); $balloon->attach($combine, -msg => "Split the center hole to a mechani +cal drill layer, and option to add coupons to more layers",-balloonpo +sition => 'mouse'); my $skip = $mw->Button(-text=>'Skip',-command=> sub { &skip_drill},-fo +nt=> $fontname,-activebackground => "yellow")->pack(-expand=>1,-fill= +>'none',-side => 'right',-pady=> '0.1c'); $balloon->attach($skip, -msg => "Skip the current drill layer",-ba +lloonposition => 'mouse'); my $status=$mw->Button(-text=>'Status',-command=> sub { &status_gu +i},-font=> $fontname,-activebackground => "#9966CC")->pack(-expand=>1 +,-fill=>'none',-side => 'right',-pady=> '0.1c'); $balloon->attach($status, -msg => "View summary of script actions",-ba +lloonposition => 'mouse'); $mw->withdraw; #avoid the jumping window bug $mw->Popup; $drillinfoadded = "No"; MainLoop; #Exit the script if $feedback equals Destroy! exit 0 if $feedback eq "Destroy!"; } #The exit button in $mw was clicked sub Exit { $feedback = "Destroy!"; $mw->destroy(); } #The skip button in $mw was pushed sub skip_drill() { push(@statusinfo," "); push(@statusinfo,"$currentdrill Skipped"); $feedback = "Skip"; $mw->destroy(); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Looping Window
by graff (Chancellor) on Jul 08, 2009 at 22:36 UTC | |
|
Re: Looping Window
by GrandFather (Saint) on Jul 08, 2009 at 23:12 UTC | |
|
Re: Looping Window
by zentara (Cardinal) on Jul 09, 2009 at 15:38 UTC |