I seem to be having a strange problem with one of the pyGTK programs I'm
working on.

        Essentially, I have a window which contains a number of TextEntry and TextBox
widets, and one OptionMenu., all created with glade. The user is supposed to be
able to select an option from the optionmenu, and the data in the various text
widgets is stored into memory, and the data which relates to the option selected
is loaded from memory and the widgets get updated.

        The data gets passed back and forth via a refernce to self. TextEntries are
modified using set_text() and get_text() and appear to work correctly. TextBoxes
(GTKText widget) are set using delete_chars(self.window.textbox, 0, -1) (to
clear old data) and insert_chars(self.window.textbox, 0, -1), and the data is
retrieve by using gtk.GtkEntry.get_chars(self.window.textbox).

        The problem is that the get_chars method doesn't work correctly, so the
information in the textboxes is lost between selections. I don't believe the
problem to be related to namespace issues, as the textentry fields get and set
properly.

        Can anyone suggest some problem areas I might want to run down and check? Does
it sound like anything I'm doing is wrong or could be handled better? Thanks in
advance for any advice which might be offered.

Steve Castellotti
[EMAIL PROTECTED]

_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk

Reply via email to