mirror of https://github.com/python/cpython
Two critical fixes to the changes that I made for Greg McFarlane --
patches provided by Greg (am I glad I sent him my latest version!).
This commit is contained in:
parent
13704a8928
commit
1cd6a457d9
|
@ -679,8 +679,8 @@ class Misc:
|
||||||
return self._getints(
|
return self._getints(
|
||||||
self.tk.call('grid', 'size', self._w)) or None
|
self.tk.call('grid', 'size', self._w)) or None
|
||||||
size = grid_size
|
size = grid_size
|
||||||
def grid_slaves(self, master, row=None, column=None):
|
def grid_slaves(self, row=None, column=None):
|
||||||
args = (master,)
|
args = ()
|
||||||
if row:
|
if row:
|
||||||
args = args + ('-row', row)
|
args = args + ('-row', row)
|
||||||
if column:
|
if column:
|
||||||
|
@ -1431,7 +1431,7 @@ class Menu(Widget):
|
||||||
def delete(self, index1, index2=None):
|
def delete(self, index1, index2=None):
|
||||||
self.tk.call(self._w, 'delete', index1, index2)
|
self.tk.call(self._w, 'delete', index1, index2)
|
||||||
def entrycget(self, index, option):
|
def entrycget(self, index, option):
|
||||||
return self.tk.call(self._w, 'entrycget', '-' + option)
|
return self.tk.call(self._w, 'entrycget', index, '-' + option)
|
||||||
def entryconfigure(self, index, cnf=None, **kw):
|
def entryconfigure(self, index, cnf=None, **kw):
|
||||||
if cnf is None and not kw:
|
if cnf is None and not kw:
|
||||||
cnf = {}
|
cnf = {}
|
||||||
|
|
Loading…
Reference in New Issue