[Python-checkins] CVS: python/dist/src/Lib/lib-tk Tkinter.py,1.144,1.145
Fredrik Lundh
python-dev@python.org
Wed, 9 Aug 2000 12:12:04 -0700
Update of /cvsroot/python/python/dist/src/Lib/lib-tk
In directory slayer.i.sourceforge.net:/tmp/cvs-serv30192/Lib/lib-tk
Modified Files:
Tkinter.py
Log Message:
-- added optional newstate argument to Wm.state. The newstate arg
was added in Tk 8.3 (this fixes the first part of Bug #110605)
Index: Tkinter.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/lib-tk/Tkinter.py,v
retrieving revision 1.144
retrieving revision 1.145
diff -C2 -r1.144 -r1.145
*** Tkinter.py 2000/08/09 18:51:01 1.144
--- Tkinter.py 2000/08/09 19:11:59 1.145
***************
*** 1435,1442 ****
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)
state = wm_state
def wm_title(self, string=None):
--- 1435,1442 ----
return self.tk.call('wm', 'sizefrom', self._w, who)
sizefrom = wm_sizefrom
! 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):