GtkDialog created from GtkBuilder (glade 3) isn't returning a gtk.ResponseType
- From: "Ethan Baldridge" <ethan superiordocumentservices com>
- To: <gtk-app-devel-list gnome org>
- Subject: GtkDialog created from GtkBuilder (glade 3) isn't returning a gtk.ResponseType
- Date: Wed, 22 Apr 2009 16:30:24 -0400
I can't figure out what I'm doing wrong. I'm trying to make a login
dialog - I created it in Glade-3 making sure to use a GtkDialog
template.
But the result is always 0, which isn't in the ResponseType enum at all.
def login(self):
self.builder.add_from_file("transmission.glade")
dialog =
self.builder.get_object("login")
#okButton =
self.builder.get_object("button1")
#closeButton =
self.builder.get_object("button2")
window.set_default_response(gtk.RESPONSE_OK)
self.builder.connect_signals(self)
result = dialog.run()
uname =
self.builder.get_object("username").get_text()
passwd =
self.builder.get_object("password").get_text()
dialog.destroy()
return result, uname, passwd;
Thanks in advance for any help!
-Ethan
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]