From: enigma at tcct.nmt.edu (SysProg - Nathan Paul Simons)
Date: 18 May 1999 17:36:40 GMT
Subject: TkInter: class Grid missing remove?
Message-ID: <7hs8f8$3d2$1@newshost.nmt.edu>
Content-Length: 1232
X-UID: 1802                                                

	I tried posting this once already, but apparently it didn't get
posted, or if it did, nobody replied, so I'm posting it again.

	Apparently, class Grid in tkinter (Tkinter.py) is missing the
grid_remove method.  Here is the relevant code, including the change:

class Grid:
	# Thanks to Masazumi Yoshikawa (yosikawa at isi.edu)
	def grid_configure(self, cnf={}, **kw):
		apply(self.tk.call, 
		      ('grid', 'configure', self._w) 
		      + self._options(cnf, kw))
	grid = configure = config = grid_configure
	bbox = grid_bbox = Misc.grid_bbox
	columnconfigure = grid_columnconfigure = Misc.grid_columnconfigure
	def grid_forget(self):
		self.tk.call('grid', 'forget', self._w)
	# AMS 10/28/98: was missing!  Added, following grid_forget().
	def grid_remove(self):
		self.tk.call('grid', 'remove', self._w)

I actually didn't find it.  Credit for this fix goes to 
Prof. Al Stavely <al at nmt.edu>.

----------------------------------------------------------------
Nathan Paul Simons   enigma at nmt.edu   http://www.nmt.edu/~enigma
New Mexico Tech Computer Center       Speare 20            x5748
Systems Programmer - Macs, Linux/UNIX apps, printing, ftp, etc
----------------------------------------------------------------





