Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How can I bind the ResizeRequest event?

bind event
0
Posted

How can I bind the ResizeRequest event?

0

The ResizeRequest event is used (typically by window managers) to interpose on configuration changes before they occur, possibly preventing them from occurring altogether and support for it was removed in Tk4. There is almost no imaginable case where Tk scripts should really be asking for ResizeRequest events; people tended to use them when what they really wanted was Configure events (which trigger after the resize has occured), and this produced very strange behavior in their programs. Try bind .widget { puts “%W is now %w x %h” } instead.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123