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

_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

Reply via email to