mirror of
https://github.com/python/cpython.git
synced 2025-10-21 06:02:21 +00:00
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.)
This commit is contained in:
parent
246c425964
commit
49fa2bdaa1
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
||||
|
||||
######################################################
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue