mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
simpler version of the previous fix
This commit is contained in:
parent
8535b29f39
commit
688bbfc217
2 changed files with 4 additions and 8 deletions
|
@ -139,8 +139,7 @@ class Misc:
|
||||||
return self.tk.getboolean(self.tk.call(
|
return self.tk.getboolean(self.tk.call(
|
||||||
'set', 'tk_strictMotif', boolean))
|
'set', 'tk_strictMotif', boolean))
|
||||||
def tk_menuBar(self, *args):
|
def tk_menuBar(self, *args):
|
||||||
if TkVersion < 4.1:
|
pass # obsolete since Tk 4.0
|
||||||
apply(self.tk.call, ('tk_menuBar', self._w) + args)
|
|
||||||
def wait_variable(self, name='PY_VAR'):
|
def wait_variable(self, name='PY_VAR'):
|
||||||
self.tk.call('tkwait', 'variable', name)
|
self.tk.call('tkwait', 'variable', name)
|
||||||
waitvar = wait_variable # XXX b/w compat
|
waitvar = wait_variable # XXX b/w compat
|
||||||
|
@ -1218,8 +1217,7 @@ class Menu(Widget):
|
||||||
def __init__(self, master=None, cnf={}, **kw):
|
def __init__(self, master=None, cnf={}, **kw):
|
||||||
Widget.__init__(self, master, 'menu', cnf, kw)
|
Widget.__init__(self, master, 'menu', cnf, kw)
|
||||||
def tk_bindForTraversal(self):
|
def tk_bindForTraversal(self):
|
||||||
if TkVersion < 4.1:
|
pass # obsolete since Tk 4.0
|
||||||
self.tk.call('tk_bindForTraversal', self._w)
|
|
||||||
def tk_mbPost(self):
|
def tk_mbPost(self):
|
||||||
self.tk.call('tk_mbPost', self._w)
|
self.tk.call('tk_mbPost', self._w)
|
||||||
def tk_mbUnpost(self):
|
def tk_mbUnpost(self):
|
||||||
|
|
|
@ -139,8 +139,7 @@ class Misc:
|
||||||
return self.tk.getboolean(self.tk.call(
|
return self.tk.getboolean(self.tk.call(
|
||||||
'set', 'tk_strictMotif', boolean))
|
'set', 'tk_strictMotif', boolean))
|
||||||
def tk_menuBar(self, *args):
|
def tk_menuBar(self, *args):
|
||||||
if TkVersion < 4.1:
|
pass # obsolete since Tk 4.0
|
||||||
apply(self.tk.call, ('tk_menuBar', self._w) + args)
|
|
||||||
def wait_variable(self, name='PY_VAR'):
|
def wait_variable(self, name='PY_VAR'):
|
||||||
self.tk.call('tkwait', 'variable', name)
|
self.tk.call('tkwait', 'variable', name)
|
||||||
waitvar = wait_variable # XXX b/w compat
|
waitvar = wait_variable # XXX b/w compat
|
||||||
|
@ -1218,8 +1217,7 @@ class Menu(Widget):
|
||||||
def __init__(self, master=None, cnf={}, **kw):
|
def __init__(self, master=None, cnf={}, **kw):
|
||||||
Widget.__init__(self, master, 'menu', cnf, kw)
|
Widget.__init__(self, master, 'menu', cnf, kw)
|
||||||
def tk_bindForTraversal(self):
|
def tk_bindForTraversal(self):
|
||||||
if TkVersion < 4.1:
|
pass # obsolete since Tk 4.0
|
||||||
self.tk.call('tk_bindForTraversal', self._w)
|
|
||||||
def tk_mbPost(self):
|
def tk_mbPost(self):
|
||||||
self.tk.call('tk_mbPost', self._w)
|
self.tk.call('tk_mbPost', self._w)
|
||||||
def tk_mbUnpost(self):
|
def tk_mbUnpost(self):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue