If I try to connect some function to the insert_text signal of a 
gtk_text I have some problems:

1)  I get some garbage at the end of new_text (not a problem since I can 
cut it since I know new_text_length)

2) As position I get a PyCObject object instead of a int.

An example follows:

from gtk import *
def onInsertText(editable, new_text, new_text_length, position):
   print new_text
   print new_text_length
   print position
win=GtkWindow()
text=GtkText()
text.set_editable(TRUE)
text.connect('insert_text', onInsertText)
win.add(text)
win.connect('destroy', mainquit)
win.show_all()
mainloop()

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

Reply via email to