X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ec873c943d71f0d5f13e3398557071448cda6c23..a4027e74873007e3430af3bd77019bcab76f6c04:/wxPython/samples/wxPIA_book/Chapter-09/modal_dialog.py diff --git a/wxPython/samples/wxPIA_book/Chapter-09/modal_dialog.py b/wxPython/samples/wxPIA_book/Chapter-09/modal_dialog.py deleted file mode 100644 index f4dcd71428..0000000000 --- a/wxPython/samples/wxPIA_book/Chapter-09/modal_dialog.py +++ /dev/null @@ -1,21 +0,0 @@ -import wx - -class SubclassDialog(wx.Dialog): - def __init__(self): - wx.Dialog.__init__(self, None, -1, 'Dialog Subclass', - size=(300, 100)) - okButton = wx.Button(self, wx.ID_OK, "OK", pos=(15, 15)) - okButton.SetDefault() - cancelButton = wx.Button(self, wx.ID_CANCEL, "Cancel", - pos=(115, 15)) - -if __name__ == '__main__': - app = wx.PySimpleApp() - app.MainLoop() - dialog = SubclassDialog() - result = dialog.ShowModal() - if result == wx.ID_OK: - print "OK" - else: - print "Cancel" - dialog.Destroy()