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

In reply to Tk Radio Button quandry by Grygonos

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.