Gtk::Text



Hi again!

Another question:

If i insert a Gtk::Text widget, like

$text=new Gtk::Text();
$text->set_editable(1);
$text->show();

how can I extract the text I entered the textbox to a scalar variable?
I'd like to print out the text I entered to the screen for example, or
perform other operations with the text, save it to a file, etc... I
tried 

$text->get_text($ezvan);
print $ezvan;

but it didn't work, got an error message:

Can't locate object method "get_text" via package "Gtk::Text" at elso.pl
line 49 

Thanks for your answer!

Regards,

Peter







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