Grygonos has asked for the wisdom of the Perl Monks concerning the following question:

Fellow Monks,

I have the following code

#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();
This worked fine until I introduced the radiobuttons.

I receive the following error

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)
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,

Grygonos

Replies are listed 'Best First'.
Re: Tk Radio Button quandry
by pg (Canon) on Dec 02, 2003 at 15:58 UTC

    Radiobutton, lower case b. You have RadioButton all over the places.