mirror of
https://github.com/python/cpython.git
synced 2025-09-02 23:18:25 +00:00
Last minute fix to Text.window_cget(), which should properly Tcl-ify
the option name (prepend '-', strip trailing '_').
This commit is contained in:
parent
9afad049e0
commit
7814ea64ff
1 changed files with 4 additions and 0 deletions
|
@ -1625,6 +1625,10 @@ class Text(Widget):
|
|||
self.tk.call(
|
||||
self._w, 'tag', 'remove', tagName, index1, index2)
|
||||
def window_cget(self, index, option):
|
||||
if option[:1] != '-':
|
||||
option = '-' + option
|
||||
if option[-1:] == '_':
|
||||
option = option[:-1]
|
||||
return self.tk.call(self._w, 'window', 'cget', index, option)
|
||||
def window_configure(self, index, cnf={}, **kw):
|
||||
if type(cnf) == StringType:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue