diff options
author | Fredrik Lundh <fredrik@pythonware.com> | 2000-08-09 19:11:59 (GMT) |
---|---|---|
committer | Fredrik Lundh <fredrik@pythonware.com> | 2000-08-09 19:11:59 (GMT) |
commit | 289ad8f06354eaac2ce8174d52265292a6e71965 (patch) | |
tree | bf4bc4d2602b47d0ce8370cfd642624ac966c68c /Lib | |
parent | 8fffa208e04e347e5a560e5ca3b6f6d4c57097b2 (diff) | |
download | cpython-289ad8f06354eaac2ce8174d52265292a6e71965.zip cpython-289ad8f06354eaac2ce8174d52265292a6e71965.tar.gz cpython-289ad8f06354eaac2ce8174d52265292a6e71965.tar.bz2 |
-- added optional newstate argument to Wm.state. The newstate arg
was added in Tk 8.3 (this fixes the first part of Bug #110605)
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/lib-tk/Tkinter.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/lib-tk/Tkinter.py b/Lib/lib-tk/Tkinter.py index be01677..ec8aaaf 100644 --- a/Lib/lib-tk/Tkinter.py +++ b/Lib/lib-tk/Tkinter.py @@ -1434,10 +1434,10 @@ class Wm: "program".""" return self.tk.call('wm', 'sizefrom', self._w, who) sizefrom = wm_sizefrom - def wm_state(self): - """Return the state of this widget as one of normal, - icon, iconic (see wm_iconwindow) and withdrawn.""" - return self.tk.call('wm', 'state', self._w) + def wm_state(self, newstate=None): + """Query or set the state of this widget as one of normal, icon, + iconic (see wm_iconwindow), withdrawn, or zoomed (Windows only).""" + return self.tk.call('wm', 'state', self._w, newstate) state = wm_state def wm_title(self, string=None): """Set the title of this widget.""" |