I have the following code
This worked fine until I introduced the radiobuttons.#Create the bottom Frame my $bottom = $configDialog->Frame; my $filenameFrame = $bottom->Frame; my $clientnameFrame = $bottom->Frame; my $priorityFrame = $bottom->Frame; #Create and pack the label $filenameFrame->Label(-text=>'Enter a Filename:')->pack(); my $nameBox = $filenameFrame->Text(-width=>'20', -height=>'1')->pack(); $filenameFrame->pack(-side=>'left'); $priorityFrame->Label(-text=>"Priority")->pack(); $priorityFrame->RadioButton(-text=>"High", -variable=>\$priority)->pack(); $priorityFrame->RadioButton(-text=>"Medium", -variable=>\$priority)->pack(); $priorityFrame->RadioButton(-text=>"Low", -variable=>\$priority)->pack(); $priorityFrame->pack(); $clientnameFrame->Label(-text=>'Choose a Client')->pack(); my $clientBox = $clientnameFrame->Scrolled('Listbox',-height=>'3', -width=>'7' +, -scrollbars=> +'e')->pack(); $clientnameFrame->pack(-side=>'right'); $bottom->pack();
I receive the following error
I do have require Tk::RadioButton; at the top of this file. Does anyone have any idea what perl is really griping at me about here... btw line 57 is the first radiobutton declaration. Thanks in advance for any help,Assuming 'require Tk::RadioButton;' at C:/Perl/lib/list_maker.pl line +57 Tk::Error: Failed to AUTOLOAD 'Tk::Widget::RadioButton' at C:/Perl/lib +/list_make r.pl line 57 Carp::croak at C:/Perl/lib/Carp.pm line 191 Tk::Widget::__ANON__ at C:/Perl/site/lib/Tk/Widget.pm line 338 main::configCreate at C:/Perl/lib/list_maker.pl line 57 [\&main::configCreate,\{}] Tk callback for .button1 Tk::__ANON__ at C:/Perl/site/lib/Tk.pm line 228 Tk::Button::butUp at C:/Perl/site/lib/Tk/Button.pm line 111 (command bound to event)
In reply to Tk Radio Button quandry by Grygonos
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |