The menu operations in python tkinter are mentioned in the previous blog.
Python developer _ tkinter _ Window widget _ recommended Python IDEL _ blogger
Python development _ tkinter _ window control _ Self-made Python IDEL _ blogger recommendation (2)
The following is the check menu operation in tkinter.
Running effect:
1.
2.
tkinter * = { : : : : : pepperonis = anchovies = pepperonis = ( anchovies = ( Checkbutton_button = Menubutton(mBar, text= underline= Checkbutton_button.pack(side=LEFT, padx= Checkbutton_button.menu = Checkbutton_button.menu.add_checkbutton(label=, command= Checkbutton_button.menu.add_checkbutton(label= Checkbutton_button.menu.add_checkbutton(label= Checkbutton_button.menu.add_checkbutton(label= command= Checkbutton_button.menu.invoke(Checkbutton_button.menu.index( Checkbutton_button[] = root = root.geometry( root.title( root.iconname( mBar = Frame(root, relief=RAISED, borderwidth=2 mBar.pack(fill= Checkbutton_button = root.mainloop()