Apart from calling commands and nesting submenus, it is also possible to connect Tkinter variables to menu entries.
Using variables in menus
Getting ready
We will add a check button entry and three radio button entries to the Options submenu, divided by a separator. There will be two underlying Tkinter variables to store the selected values, so we can retrieve them easily from other methods of our application:
How to do it...
These types of entries are added with the add_checkbutton and add_radiobutton methods of the Menu widget class. Like with regular radio buttons...