overriding tks text insert method

Christof Ecker ecker at physik.hu-berlin.de
Mon Sep 3 08:04:32 EDT 2001


Hi you cracks,

I want to manipulate the Tkinter Text "insert" method in such a way, that all 
the default bindings use my python method instead.

If the insert method was programmed in python and not in Tcl, the solution
would be to subclass text and override the insert method:

class myText(Text):
	def insert(self, ... ):
		# my stuff
		...
		# finally
		Text.insert(self, ...)

The solution might be something similar, but on the Tcl level.
Can anyone help ?

Christof

__________________uni__________
Humboldt-Universitaet zu Berlin			
Institut fuer Physik				
Physik von Makromolekuelen			 
Invalidenstrasse 110				    
D-10115 Berlin
fon: +49-30-2093 7856				 
fax: +49-30-2093 7632				 




More information about the Python-list mailing list