All pastes #352472 Raw Edit

Unnamed

public text v1 · immutable
·published 2007-02-12 21:02 UTC
rendered paste body
--- 2dlg-orig.py        2007-02-12 12:29:53.000000000 -0800
+++ 2dlg.py     2007-02-12 12:29:01.000000000 -0800
@@ -41,12 +41,13 @@

     def OnClose(self, evt):
         self.EndModal(True)
-        self.Destroy()
+        #self.Destroy()

         if self.progress >= self.timeout:
             self.timer.Stop()
             d = ClosingDialog("Timed Dialog")
             d.ShowModal()
+            d.Destroy()


 class ClosingDialog(wx.Dialog):
@@ -81,3 +82,4 @@

 d = ErrorDialog("Hello World!")
 d.ShowModal()
+d.Destroy()