aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2000-04-21 15:33:37 +0000
committerEric S. Raymond <esr@thyrsus.com>2000-04-21 15:33:37 +0000
commit26223327411f8091d183a7d53b3bd9fd0dd33e42 (patch)
tree0339572c58d393f27788f5913b2af950bca16ec2
parent3cdfeb13baf6f534d7ddf8fd907cc33daa7bb3f2 (diff)
downloadfetchmail-26223327411f8091d183a7d53b3bd9fd0dd33e42.tar.gz
fetchmail-26223327411f8091d183a7d53b3bd9fd0dd33e42.tar.bz2
fetchmail-26223327411f8091d183a7d53b3bd9fd0dd33e42.zip
This version works better.
svn path=/trunk/; revision=2887
-rwxr-xr-xfetchmailconf14
1 files changed, 4 insertions, 10 deletions
diff --git a/fetchmailconf b/fetchmailconf
index 2e0b90b5..a6600be3 100755
--- a/fetchmailconf
+++ b/fetchmailconf
@@ -492,7 +492,8 @@ class ListEdit(Frame):
if item and (not entire) or (not item in self.listwidget.get(0, self.listwidget.index('end'))):
self.listwidget.insert('end', item)
if self.list != None: self.list.append(item)
- apply(self.editor, (item,))
+ if self.editor:
+ apply(self.editor, (item,))
self.newval.set('')
def editItem(self):
@@ -503,7 +504,8 @@ class ListEdit(Frame):
index = select[0]
if index and self.editor:
label = self.listwidget.get(index);
- apply(self.editor, (label,))
+ if self.editor:
+ apply(self.editor, (label,))
def deleteItem(self):
select = self.listwidget.curselection()
@@ -1666,14 +1668,6 @@ Or you can just select `Quit' to exit the launcher now.
""", width=600).pack(side=TOP)
Button(self, text='Quit', fg='blue', command=self.leave).pack()
- sysversion = string.split(sys.version, " ")[0]
- if sysversion < "1.5.2":
- Message(self, text="""
-Warning: it looks like your Python version is older than 1.5.2.
-Double-clicking an empty listbox entry may cause fetchmailconf
-to abort (this seems to be a tkinter bug). We recommend upgrading.
-""", width=600).pack(side=TOP)
-
def configure(self):
self.configbutton.configure(state=DISABLED)
Configurator(self.outfile, Toplevel(),