TkInter: class Grid missing remove?

SysProg - Nathan Paul Simons enigma at tcct.nmt.edu
Tue May 18 13:36:40 EDT 1999


	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
----------------------------------------------------------------





More information about the Python-list mailing list