2.7 Creating a Dialog Window

Dialogs are used to interact with the user and get specific inputs. In the previous sections we used the pre-built dialog wxFileDialog. We are now going to develop our own Dialog for the About menu option.
    def OnHelpitems0Menu(self, event):
        dlg = wxDialog1.wxDialog1(self)
        try:
            dlg.ShowModal()
        finally:
            dlg.Destroy()  
    import wxDialog1
        def OnButton1Button(self, event):
            self.Close()

Run the application. Your new Dialog should look something like this.

Congratulations: You have built your first application using Boa Constructor. Your editor is complete. In this tutorial you have used the core components of Boa.

Take time to review what you have done so far. You have learnt how to: