Re: TextView



On Mon, 2005-01-31 at 11:38 -0200, ADIS - C.P.D. wrote:

How can I create a Gtk2::TextView with fixed size?

Since Gtk2::TextView is a Gtk2::Widget, you can use the modify_font()
method on it:

  my $desc = Gtk2::Pango::FontDescription -> new("Fixed 12");
  $view -> modify_font($desc);

-- 
HTH,
-Torsten




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