Re: Gtk2::TextView problems output



On Mon, 2008-02-18 at 21:56 +0100, kilckk wrote:

That is an entry just do:

My $test = $app->get_widget ("test");
Print $test->get_text;

But with a TextView?

Gtk2::TextView is just a display for the text inside a Gtk2::TextBuffer.
So:

  my $text_buffer = $text_view->get_buffer;
  my $text = $text_buffer->get_text($buffer->get_bounds, TRUE);

-- 
Bye,
-Torsten




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