[pygtk] How to connect a signal to a Ggtk.assistant "Next" button
Daniele Visaggio
visaggio.daniele at gmail.com
Sun Jan 10 19:20:16 WST 2010
Hi all,
I made an assistant with 3 pages. On the second page I put a gtk.entry
in order to catch the user input (his/her e-mail address).
Now I want this input be catched when the user presses the "next"
button, while now the input is catched only when the user presses enter
in the text entry field.
How can I do this?
My relevant code:
#########################
# The second page
self.page2 = gtk.VBox(False, 0)
self.append_page(self.page2)
self.set_page_title(self.page2, "Please insert your e-mail")
entry = gtk.Entry()
entry.set_max_length(50)
entry.connect("activate", self.enter_callback, entry)
entry.set_text("hello")
entry.show()
self.page2.pack_start(entry, True, True, 0)
self.page2.show()
self.set_page_type(self.page2, gtk.ASSISTANT_PAGE_CONTENT)
self.set_page_complete(self.page2, True)
#########################
Thank you in advance!
Daniele
More information about the pygtk
mailing list