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 get the tearoff menu to reflect changes in the regular menu?

0
Posted

How can I get the tearoff menu to reflect changes in the regular menu?

0

At the moment torn-off menus will not reflect changes made to the original menu. This functionality is slated for an upcoming revision of the menu system in Tk. It’s possible to do this now by tracking the associated tearoff using the -tearoffcommand option for menus. This allows you to specify a command that will be executed when the menu is torn off. The widget names of the menu and tearoff menu (tearoffs are created as toplevels with the name .toplevel.tearoff when torn off) are appended to this command before it is evaluated.

Related Questions

What is your question?

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

Experts123