3
votes

I'm writing a tkinter.Toplevel widget where I'd like to bind to the maximize button, i.e. perform my own action when the user clicks on the little + button on the top of the window. Anybody know how to do this? Is there a way to do this with protocol, or something similar?

1

1 Answers

1
votes

For minimization you should be able to bind to <UnMap> You can read more here.

I'm not sure what to suggest for maximization. Maybe the <Configure> event, or <ResizeRequest>.