> How can i adjust the above so it will respond to whatever text widget the > call comes from. You might want to look at "Thinking in Tkinter" http://home.att.net/~stephen_ferg/thinking_in_tkinter/index.html tt077.py and the next couple of programs might be especially relevant.