Tkinter focus under windows

Todd Miller jmiller at stsci.edu
Fri Mar 19 23:58:38 CET 2004


I'm working on a Tkinter backend for the matplotlib plotting software. 
matplotlib can be run interactively from some form of Python shell while
plotting to a Tk window.  One annoyance we've noticed is that when we
update the plot window, it steals the focus from the shell window, at
least on a Win32 platform.

I am very new to Tkinter so I am looking for insight into how the focus
works on win32 and how to prevent the Tkinter window from stealing focus
from the shell window.  Any ideas?

Thanks,
Todd Miller






More information about the Python-list mailing list