summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2001-08-13 14:12:35 (GMT)
committerGuido van Rossum <guido@python.org>2001-08-13 14:12:35 (GMT)
commit49fa2bdaa124e99c62ea901c8151eaa064f79c6d (patch)
treef7234785163c52aebedd3a3e13556272ddebeb74 /Lib
parent246c425964ba742db85076538f14e206a90706b8 (diff)
downloadcpython-49fa2bdaa124e99c62ea901c8151eaa064f79c6d.zip
cpython-49fa2bdaa124e99c62ea901c8151eaa064f79c6d.tar.gz
cpython-49fa2bdaa124e99c62ea901c8151eaa064f79c6d.tar.bz2
Fix two bugs discovered by PyChecker. (I cannot test these, but I'm
confident that the old code was utterly broken -- the worse that can happen is that the new code is still broken.)
Diffstat (limited to 'Lib')
-rwxr-xr-xLib/lib-tk/Tix.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/lib-tk/Tix.py b/Lib/lib-tk/Tix.py
index b8346ad..9980941 100755
--- a/Lib/lib-tk/Tix.py
+++ b/Lib/lib-tk/Tix.py
@@ -78,7 +78,7 @@ class Form:
form = config
def __setitem__(self, key, value):
- Form.form({key: value})
+ Form.form(self, {key: value})
def check(self):
return self.tk.call('tixForm', 'check', self._w)
@@ -328,7 +328,7 @@ class DisplayStyle:
(self.stylename, 'configure') + self._options(cnf,kw))))
def __getitem__(self,key):
- return self.tk.call(self.stylename, 'cget', '-%s'%key, value)
+ return self.tk.call(self.stylename, 'cget', '-%s'%key)
######################################################