]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
-- added optional newstate argument to Wm.state. The newstate arg
authorFredrik Lundh <fredrik@pythonware.com>
Wed, 9 Aug 2000 19:11:59 +0000 (19:11 +0000)
committerFredrik Lundh <fredrik@pythonware.com>
Wed, 9 Aug 2000 19:11:59 +0000 (19:11 +0000)
   was added in Tk 8.3 (this fixes the first part of Bug #110605)

Lib/lib-tk/Tkinter.py

index be0167714a15e263f8b4cac13ac536b1441f2755..ec8aaafd205a9c925bdb0283ca3e1b9197ea2cf5 100644 (file)
@@ -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."""