This is a demo program that showcases how to create a simple Tkinter GUI with a menu. The program allows users to toggle, show, and hide a menu item dynamically.
- Toggle a menu item dynamically.
- Show a hidden menu item.
- Hide a menu item.
- Execute a hidden function when the menu item is clicked.
- Exit the program.
- Run the program by executing the Python script.
- Use the "Toggle Item" button to toggle the visibility of a menu item.
- Use the "Show" button to show a hidden menu item.
- Use the "Hide" button to hide a visible menu item.
- Click on the "Do Secret option" menu item to execute a hidden function.
- Click on the "Exit" menu item to exit the program.
- Python 3
- Tkinter (usually comes pre-installed with Python)
python demo.py
Demo with hidden menu item
https://github.com/janjeronimus/menu_hide
J.Jeronimus - 2024