]> granicus.if.org Git - python/commitdiff
Fix two bugs discovered by PyChecker. (I cannot test these, but I'm
authorGuido van Rossum <guido@python.org>
Mon, 13 Aug 2001 14:12:35 +0000 (14:12 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 13 Aug 2001 14:12:35 +0000 (14:12 +0000)
confident that the old code was utterly broken -- the worse that can
happen is that the new code is still broken.)

Lib/lib-tk/Tix.py

index b8346addf4b432aafd9f4e70cf20d3ded9128996..9980941b0d2eb0220337d61ef07867e9882c9702 100755 (executable)
@@ -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)
 
 
 ######################################################