check button and radio button selectionsand bitmap and photo images the next section demonstrates how some of these special menu entries are programmed windows with both menus and toolbars besides showing menu at the topit is common for windows to display row of buttons at the bottom this bottom button row is usually called toolbarand it often contains shortcuts to items also available in the menus at the top it' easy to add toolbar to windows in tkinter--simply pack buttons (and other kinds of widgetsinto framepack the frame on the bottom of the windowand set it to expand horizontally only this is really just hierarchical gui layout at work againbut make sure to pack toolbars (and frame-based menu barsearly so that other widgets in the middle of the display are clipped first when the window shrinksyou usually want your tool and menu bars to outlive other widgets example - shows one way to go about adding toolbar to window it also demonstrates how to add photo images in menu entries (set the image attribute to photo image objectand how to disable entries and give them grayed-out appearance (call the menu entryconfig method with the index of the item to disablestarting from notice that photoimage objects are saved as listrememberunlike other widgetsthese go away if you don' hold on to them (see if you need refresherexample - pp \gui\tour\menudemo py #!/usr/local/bin/python ""tk style main window menus menu/tool bars packed before middlefill= (pack first=clip last)adds photo menu entriessee alsoadd_checkbuttonadd_radiobutton ""from tkinter import from tkinter messagebox import get widget classes get standard dialogs class newmenudemo(frame)def __init__(selfparent=none)frame __init__(selfparentself pack(expand=yesfill=bothself createwidgets(self master title("toolbars and menus"self master iconname("tkpython"an extended frame attach to top-leveldo superclass init attach frames/widgets set window-manager info label when iconified def createwidgets(self)self makemenubar(self maketoolbar( label(selftext='menu and toolbar demo' config(relief=sunkenwidth= height= bg='white' pack(expand=yesfill=bothmenus