From 9fa54460136c706f334a67d4d442ac9dc3bb20fb Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Wed, 16 Jul 2003 18:52:24 +0000 Subject: Try to get the GUI working again. svn path=/trunk/; revision=3809 --- torturetest.py | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'torturetest.py') diff --git a/torturetest.py b/torturetest.py index 4f14a21b..e549c25d 100755 --- a/torturetest.py +++ b/torturetest.py @@ -149,24 +149,31 @@ class TortureGUI: def display(self, site): for member in TortureGUI.field_map: self.set_widget(member + "_entry", getattr(site, member)) - for proto in ('POP3', 'IMAP'): + for proto in ('POP3', 'APOP', 'IMAP'): self.wtree.get_widget(proto + "_radiobutton").set_active(site.protocol == proto) # Housekeeping def on_torturetest_destroy(self, obj): gtk.mainquit() - def on_quit1_activate(self, obj): + print "Destroy" + def on_quitbutton_activate(self, obj): + gtk.mainquit() + print "Mainquit" + def on_savebutton_activate(self, obj): gtk.mainquit() - def on_save1_activate(self, obj): print "Save" - def on_delete1_activate(self, obj): + def on_deletebutton_activate(self, obj): + gtk.mainquit() print "Delete" + gtk.mainquit() def on_new1_activate(self, obj): + gtk.mainquit() print "New" def on_open1_activate(self, obj): print "Open" def on_combo_entry1_activate(self, obj): + print "I see you!" key = self.combo.entry.get_text() for site in sitelist: if site.comment.find(key) > -1: -- cgit v1.2.3