pydraw wxpython example application the operating system it has menu bar across the top (on mac this menu bar is at the top of the mac display) tool bar below the menu bar and scrollable drawing area below that the first button on the tool bar clears the drawing area the second and third buttons are only implemented so that they print out message into the python consolebut are intended to allow user to load and save drawings the tool bar buttons are duplicated on the menus defined for the applicationalong with drawing tool selection menuas shown below the structure of the application the user interface created for the pydraw application is made up of number of elements (see below)the pydrawmenubarthe pydrawtoolbar containing sequence of buttons across the top of the windowthe drawing paneland the window frame (implemented by the pydrawframe classthe following diagram shows the same information as that presented abovebut as containment hierarchythis means that the diagram illustrates how one object is contained within another the lower level objects are contained within the higher level objects