aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2003-07-16 20:31:51 +0000
committerEric S. Raymond <esr@thyrsus.com>2003-07-16 20:31:51 +0000
commit95623cc87f157cc7b3e15e7780131c6a1bbf7acb (patch)
tree88a2d1caa99675254cc5fdf49187f98065515310
parent8d5722cff4f25a4ecc4f2b40664e6e3667df8747 (diff)
downloadfetchmail-95623cc87f157cc7b3e15e7780131c6a1bbf7acb.tar.gz
fetchmail-95623cc87f157cc7b3e15e7780131c6a1bbf7acb.tar.bz2
fetchmail-95623cc87f157cc7b3e15e7780131c6a1bbf7acb.zip
We have responsive buttons.
svn path=/trunk/; revision=3811
-rwxr-xr-xtorturetest.py15
1 files changed, 5 insertions, 10 deletions
diff --git a/torturetest.py b/torturetest.py
index fd5d7c37..36f6bb3d 100755
--- a/torturetest.py
+++ b/torturetest.py
@@ -79,7 +79,7 @@ class TestSite:
try:
ofp = open(TestSite.temp, "w")
ofp.write('defaults mda "(echo; echo \'From torturetest\' `date`; cat) >>TEST.LOG"\n')
- ofp.write(site.entryprint())
+ ofp.write(self.entryprint())
ofp.close()
(self.status, self.output) = commands.getstatusoutput("fetchmail -d0 -v -f - <%s"%TestSite.temp)
finally:
@@ -118,7 +118,8 @@ class TortureGUI:
mydict = {}
for key in ('on_torturetest_destroy',
'on_quitbutton_clicked',
- 'on_savebutton_clicked',
+ 'on_newbutton_clicked',
+ 'on_testbutton_clicked',
'on_combo_entry1_activate'):
mydict[key] = getattr(self, key)
self.wtree.signal_autoconnect(mydict)
@@ -160,14 +161,8 @@ class TortureGUI:
gtk.mainquit()
def on_quitbutton_clicked(self, obj):
gtk.mainquit()
- def on_savebutton_clicked(self, obj):
- print "Save"
- def on_deletebutton_activate(self, obj):
- print "Delete"
- def on_new1_activate(self, obj):
+ def on_newbutton_clicked(self, obj):
print "New"
- def on_open1_activate(self, obj):
- print "Open"
def on_combo_entry1_activate(self, obj):
key = self.combo.entry.get_text()
@@ -176,7 +171,7 @@ class TortureGUI:
self.site = site
self.display(self.site)
break
- def on_test_button_activate(self, obj):
+ def on_testbutton_clicked(self, obj):
self.site.fetch()
print site.output