summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/dynOptionMenuWidget.py
diff options
context:
space:
mode:
authorSteven M. Gava <elguavas@python.net>2001-10-29 08:05:34 (GMT)
committerSteven M. Gava <elguavas@python.net>2001-10-29 08:05:34 (GMT)
commit41a8532f66867e7e37d8d2ebc0642db6dc9759b2 (patch)
treee2adfdbe0bbc8e82589f90db6c56ee56763b5db4 /Lib/idlelib/dynOptionMenuWidget.py
parent9bd1401bbbbc828b457cda4a5753d643333e08cb (diff)
downloadcpython-41a8532f66867e7e37d8d2ebc0642db6dc9759b2.zip
cpython-41a8532f66867e7e37d8d2ebc0642db6dc9759b2.tar.gz
cpython-41a8532f66867e7e37d8d2ebc0642db6dc9759b2.tar.bz2
more of config dialog reading from files
Diffstat (limited to 'Lib/idlelib/dynOptionMenuWidget.py')
-rw-r--r--Lib/idlelib/dynOptionMenuWidget.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/idlelib/dynOptionMenuWidget.py b/Lib/idlelib/dynOptionMenuWidget.py
index 48a0886..8f64a0a 100644
--- a/Lib/idlelib/dynOptionMenuWidget.py
+++ b/Lib/idlelib/dynOptionMenuWidget.py
@@ -21,7 +21,7 @@ class DynOptionMenu(OptionMenu):
self.variable=variable
self.command=kwargs.get('command')
- def SetMenu(self,valueList,value):
+ def SetMenu(self,valueList,value=None):
"""
clear and reload the menu with a new set of options.
valueList - list of new options
@@ -31,4 +31,5 @@ class DynOptionMenu(OptionMenu):
for item in valueList:
self['menu'].add_command(label=item,
command=_setit(self.variable,item,self.command))
- self.variable.set(value)
+ if value:
+ self.variable.set(value)