diff options
author | Steven M. Gava <elguavas@python.net> | 2002-02-05 04:52:32 (GMT) |
---|---|---|
committer | Steven M. Gava <elguavas@python.net> | 2002-02-05 04:52:32 (GMT) |
commit | 085eb1b3723b14cdcb69d60099033be22910dbec (patch) | |
tree | 8a707da93ad12bd530a013cb0ea59e6abd7b1c34 /Lib/idlelib/configSectionNameDialog.py | |
parent | c121745fda6809bebc9a831dd27325f486086781 (diff) | |
download | cpython-085eb1b3723b14cdcb69d60099033be22910dbec.zip cpython-085eb1b3723b14cdcb69d60099033be22910dbec.tar.gz cpython-085eb1b3723b14cdcb69d60099033be22910dbec.tar.bz2 |
further work on config system and config saving
Diffstat (limited to 'Lib/idlelib/configSectionNameDialog.py')
-rw-r--r-- | Lib/idlelib/configSectionNameDialog.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/idlelib/configSectionNameDialog.py b/Lib/idlelib/configSectionNameDialog.py index a6612cc..842715b 100644 --- a/Lib/idlelib/configSectionNameDialog.py +++ b/Lib/idlelib/configSectionNameDialog.py @@ -65,10 +65,10 @@ class GetCfgSectionNameDialog(Toplevel): tkMessageBox.showerror(title='Name Error', message='No name specified.') nameOk=0 - elif len(name)>60: #name too long + elif len(name)>30: #name too long tkMessageBox.showerror(title='Name Error', - message='Name too long. Keep it to less than '+ - '60 characters.') + message='Name too long. It should be no more than '+ + '30 characters.') nameOk=0 elif name in self.usedNames: tkMessageBox.showerror(title='Name Error', @@ -78,7 +78,7 @@ class GetCfgSectionNameDialog(Toplevel): def Ok(self, event=None): if self.NameOk(): - self.result=self.name.get() + self.result=self.name.get().strip() self.destroy() def Cancel(self, event=None): |