Re: 'wrap'=>1 for Gtk2::CheckButton




andrea bravetti freeinternet it said:
I need a Gtk2::CheckButton that is multiline capable, like 'wrap'=>1 in
Gtk2::Label.

It may be Gtk2::CheckButton should use Gtk2::Label for the label, and not just
a string, or it should accept something like set_line_wrap(), or both.

Gtk2::CheckButton *does* use a Gtk2::Label for the label.  THe string you pass
to Gtk2::CheckButton::new is used to create it.  You can do it yourself if you
need:

  $checkbutton = Gtk2::CheckButton->new;
  $label = Gtk2::Label->new ($mystring);
  $label->set_line_wrap (TRUE);
  $checkbutton->add ($label);




-- 
muppet <scott at asofyet dot org>




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]