the wxpython gui library window classes the window or widget container classes that are commonly used within wxpython application arewx dialog dialog is top level window used for popups where the user has limited ability to interact with the window in many cases the user can only input some data and/or accept or decline an option wx frame frame is top level window whose size and position can be set and can (usuallybe controlled by the user wx panel is container (non top level windowon which controls/widgets can be placed this is often used in conjunction with dialog or frame to manage the positioning of widgets within the gui the inheritance hierarchy for these classes is given below for referenceas an example of using frame and panelthe following application creates two panels and displays them within top level frame the background colour of the frame is the default greywhile the background colour for the first panel is blue and for the second panel it is red the resulting display is shown below