whenever widget is created it is necessary to provide the container window class that will hold itsuch as frame or panelfor exampleenter_button wx button(panellabel='enter'in this code snippet wx button is being created that will have label 'enterand will be displayed within the given panel dialogs the generic wx dialog class can be used to build any custom dialog you require it can be used to create modal and modeless dialogsa modal dialog blocks program flow and user input on other windows until it is dismissed modeless dialog behaves more like frame in that program flow continuesand input in other windows is still possible the wx dialog class provides two versions of the show method to support modal and modeless dialogs the showmodal(method is used to display modal dialogwhile the show(is used to show modeless dialog as well as the generic wx dialog classthe wxpython library provides numerous prebuilt dialogs for common situations these pre built dialogs includewx colourdialog this class is used to generate colour chooser dialog wx dirdialog this class provides directory chooser dialog wx filedialog this class provides file chooser dialog wx fontdialog this class provides font chooser dialog wx messagedialog this class can be used to generate single or multi-line message or information dialog it can support yesno and cancel options it can be used for generic messages or for error messages wx multichoicedialog this dialog can be used to display lit of strings and allows the user to select one or more values for the list wx passwordentrydialog this class represents dialog that allows user to enter one-line password string from the user wx progressdialog if supported by the gui platformthen this class will provide the platforms native progress dialogotherwise it will use the pure python wx genericprogressdialog the wx genericprogressdialog shows short message and progress bar wx textentrydialog this class provides dialog that requests one-line text string from the user