'tkinter / Python - Hiding sub menu items at run time

I would like to hide some sub-menu items based on the current configuration of a product.

I use place_forget to hide buttons, combo boxes, etc... but I can't seem to figure out the syntax for sub menu addressing for the place_forget function calls.

I don't want to remove the sub menu items, I just make sure the user can't see them. I have other code that enables and disables menu items that will fail if the items aren't there.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source