windows as objects in wxpythonframes and dialogs as well as their contents are instances of appropriate classes (such as framedialogpanelbutton or statictextthus when you create windowyou create an object that knows how to display itself on the computer screen you must tell it what to display and then tell it to show its contents to the user you should bear the following points in mind during your reading of this they will help you understand what you are required to doyou create window by instantiating frame or dialog object you define what the window displays by creating widget that has an appropriate parent component this adds the widget to containersuch as type of panel or frame you can send messages to the window to change its stateperform an operationand display graphic object the windowor components within the windowcan send messages to other objects in response to user (or programactions everything displayed by window is an instance of class and is potentially subject to all of the above wx app handles the main event loop of the gui application simple example an example of creating very simple window using wxpython is given below the result of running this short program is shown here for both mac and windows pcthis program creates top level window (the wx frameand gives it title it also creates label ( wx statictext objectto be displayed within the frame