insert-at-cursor doesn't work

M

Marco Terzuoli

Hi,
I have created a window and placed a gtk.Entry inside it. I would like to
perform some tasks when the text of the entry is changed, so I have created
a connection such as this:

self.name_text=gtk.Entry()
self.name_text.connect("insert-at-cursor",self.name_text_changed,None)

Also, I have defined the function name_text_changed as follows:

def testo_cambiato(self,entry,string,data=None):

I don't receive any error while the program is run, but actually nothing
works.... I have tried to deal with other signals concerning the entry such
as activate and delete-from-cursor and they worked perfecly, so I just
don't understand what's wrong with my code.
Can anybody help?
Thanks
Marco
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,189
Messages
2,571,016
Members
47,618
Latest member
Leemorton01

Latest Threads

Top