diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1998-05-26 02:55:40 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1998-05-26 02:55:40 +0000 |
commit | 9c20d3f84cad034e74e0bb4e9bdf7f55ad354d0d (patch) | |
tree | 9dd6191bfb73c314f0536eca6862b40bdf5931a3 | |
parent | 3dc408edbb677b4d1df4b2d02dcce46c7cd853df (diff) | |
download | fetchmail-9c20d3f84cad034e74e0bb4e9bdf7f55ad354d0d.tar.gz fetchmail-9c20d3f84cad034e74e0bb4e9bdf7f55ad354d0d.tar.bz2 fetchmail-9c20d3f84cad034e74e0bb4e9bdf7f55ad354d0d.zip |
Fix the help stuff.
svn path=/trunk/; revision=1836
-rwxr-xr-x | fetchmailconf | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/fetchmailconf b/fetchmailconf index e6670c93..7408203a 100755 --- a/fetchmailconf +++ b/fetchmailconf @@ -482,15 +482,17 @@ To do this, find the site's label in the listbox and double-click it. This will take you to a site configuration dialogue. """} +mode_to_help = {'novice':novicehelp, 'expert':experthelp} + class ConfigurationEdit(Frame): def __init__(self, configuration, mode, master=None): Frame.__init__(self, master) - self.master.title('fetchmail " + mode + " configurator'); - self.master.iconname('fetchmail " + mode + configurator'); + self.master.title('fetchmail ' + mode + ' configurator'); + self.master.iconname('fetchmail ' + mode + ' configurator'); self.configuration = configuration Pack.config(self) - self.makeWidgets() self.mode = mode + self.makeWidgets() def makeWidgets(self): self.poll_interval = StringVar(self) @@ -504,7 +506,9 @@ class ConfigurationEdit(Frame): if self.configuration.idfile: self.idfile.set(self.configuration.idfile); self.invisible = BooleanVar(self) self.invisible.set(self.configuration.invisible) - dispose_window(self, 'Expert Configurator Controls', experthelp) + dispose_window(self, + 'Configurator ' + self.mode + ' Controls', + mode_to_help[self.mode]) gf = Frame(self, relief=RAISED, bd = 5) Label(gf, @@ -692,11 +696,11 @@ def dispose_window(master, legend, help): dispose = Frame(master, relief=RAISED, bd=5) Label(dispose, text=legend).pack(side=TOP,pady=10) Button(dispose, text='Save', fg='blue', - command=master.save).pack(side=LEFT) + command=master.save).pack(side=LEFT) Button(dispose, text='Quit', fg='blue', - command=master.nosave).pack(side=LEFT) + command=master.nosave).pack(side=LEFT) Button(dispose, text='Help', fg='blue', - command=lambda: helpwin(help)).pack(side=RIGHT) + command=lambda x=help: helpwin(x)).pack(side=RIGHT) dispose.pack(fill=X) return dispose |