Re: Help me for TextWidget

parakala suma wrote:

my problem is first time the data is bieng displayed
correctly but if I close the textwidget with close
button  and again select new branches The previous
data is not being erased. How can i clear the data in
textwidget and display newly selected data after
pressing close button in textwidget

either completely destroy the Gtk::Text when you close it (so that the next time you're dealing with a brand new, empty textbox)...

or delete all the text from the textbox before adding the text from the new query.

   $gtktext->delete_text ( 0, -1 );

(delete_text is a method of Gtk::Text's parent, Gtk::Editable)

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