in reply to Tk create menu item dynamically

This is how I construct my menu:

Hi,

Well, that is not runnable -- you should make that runnable and post an update

How can I create items of a Tk pop-up menu conditionally, for example with a switch 0/1 for the first command? (Possibly still using the same way to construct the -menuitems array (since I ve got increadibly many of such menus).

The best advice I have for you at the moment is make your sample runnable as a step 1