pydraw wxpython example application the pydrawframe constructor the pydrawframe constructor method sets up the main display of the ui application and also initialises the controllers and drawing elements this is shown below using collaboration diagramthe pydrawframe constructor sets up the environment for the application it creates the top level pydrawcontroller it creates the drawingpanel and initialises the display layout it initialises the menu bar and tool bar it binds the controllers menu handler to the menus and centers itself changing the application mode one interesting thing to note is what happens when the user selects an option from the drawing menu this allows the mode to be changed to squarecircleline or text the interactions involved are shown below for the situation where user selects the 'circlemenu item on the drawing menu (using collaboration diagram)