Tkinter menu with options & methods to add checkbox radio buttons items with tearoff and separators

preview_player
Показать описание
While using Tkitner GUI we can add top menu and by using this we can add various items to trigger different processes.
We have seen such menu in any editor or window Note pad where there are menu at the top for navigation and to perform different operations.
There are options available by using which we can customize our menu. Some of the options for the menu are foreground colour , background colour , border width , activebackground.
Using tearoff=True or tearoff=1 we can pull out the menu from the top bar and keep it separately. Cursor shape and title to the removed menu can be managed by the option.
When any item in the menu is disabled, we can change the colour of the foreground.
Manage the foreground colour of fg colour.
By using postcommand we can trigger any function when the menu is first accessed.
Selectcolor is another option which will change the colour of the selected tick of the radio button or checkbutton when it is selected.
By using add_sepearator() we can add separators between items in the menu. Separators can be added at different positions using index by using insert_separator().
Radio buttons can be added to menu and on selection of the item the radio button will be selected. Checkbutton can be added. On selection of the button radio button and checkbutton tick colour can be set by using the option selectcolor.
Menu items can be deleted by using delete() method and by using index positions as range of inputs.
By using entryconfig() we can manage the state of the menu based on the index position of the item.

#tkinter #tkinterGUI #menu #tkinterMenu #MenuItems #menuOptions #python #plus2net #tearoff #disabledMenu #GUImenu
Рекомендации по теме
Комментарии
Автор

Thanks this is helpful for my project 👍👍👍❤️❤️❤️❤️💝

valmikwagh
Автор

Plz make vedio on the working of checkbutton...like when it is checked it perform the wrap=Word function and when it is unchecked it perform the wrap=NONE function

siblings_kitchen