def get_figure_window(figure='<STR_LIT>'):
if figure == '<STR_LIT>': figure = _pylab.gcf()<EOL>return figure.canvas.GetParent()<EOL>
This will search through the windows and return the one containing the figure