Hello Monks,

I'm writing a front-end script for a Perl script I have, and I created a few RadioButtons. I was wondering
if it's possible to add a "Label" widget to a RadioButton?

I created the RadioButton, then tried using the set_label_widget() Method to add a Label I created and it
throws this error when I try to use it:
       Can't locate object method "set_label_widget" via package "Gtk2::RadioButton"


And if I simply try to use the Label widget's variable name as the RadioButton's text I see this instead of what the label
contains as its text when using the method new_with_label():
       Gtk2::Label=HASH(0x8614d54)


I read what documentation I found and I checked out the ManPage for Gtk2::RadioButton and couldn't find anything about using
Label Widgets with this. But I figured maybe it was possible since most of the documentation I found for Gtk2 doesn't always
show every single method that each particular widget is capable of using. For instance the info I found for some of the Widgets
don't include some of the methods like; "modify_bg()" and "modify_fg()", I found were missing from a few of the Widgets
Method's lists...


Any thoughts or suggestions would be much appreciated!

Thanks in Advance,
Matt


In reply to Perl::Gtk2 --- Possible for a RadioButton to contain a Label Widget? by mmartin

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.