""if self toolbartoolbar frame(selfcursor='hand 'relief=sunkenbd= toolbar pack(side=bottomfill=xfor (nameactionwherein self toolbarbutton(toolbartext=namecommand=actionpack(wheredef makewidgets(self)""make 'middlepart lastso menu/toolbar is always on top/bottom and clipped lastoverride this defaultpack middle any sidefor gridgrid middle part in packed frame ""name label(selfwidth= height= relief=sunkenbg='white'text self __class__ __name__cursor 'crosshair'name pack(expand=yesfill=bothside=topdef help(self)"override me in subclassshowinfo('help''sorryno help for self __class__ __name__def start(self)"override me in subclassset menu/toolbar with selfpass ##############################################################################customize for tk main window menu barinstead of frame ##############################################################################guimakerframemenu guimaker use this for embedded component menus class guimakerwindowmenu(guimaker)use this for top-level window menus def makemenubar(self)menubar menu(self masterself master config(menu=menubarfor (namekeyitemsin self menubarpulldown menu(menubarself addmenuitems(pulldownitemsmenubar add_cascade(label=nameunderline=keymenu=pulldownif self helpbuttonif sys platform[: ='win'menubar add_command(label='help'command=self helpelsepulldown menu(menubarlinux needs real pull down pulldown add_command(label='about'command=self helpmenubar add_cascade(label='help'menu=pulldownguimakerautomating menus and toolbars