]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/Main.py
corrected code to not suppose that Write() always writes all the data it was given
[wxWidgets.git] / wxPython / demo / Main.py
index 7dfe9cb2f7c41bf20b6f04d654591b831ffbc226..e1a23d9fcec6d70aac640e1c502dcaa7a6cfef20 100644 (file)
@@ -437,7 +437,7 @@ class wxPythonDemo(wx.Frame):
 
         if wx.Platform != '__WXMAC__':
             # setup a taskbar icon, and catch some events from it
-            dim = 16  # (may want to use 22 on wxGTK...)
+            dim = 16  # (may want to use 22 on wxGTK, but 16b looks okay too)
             icon = wx.IconFromBitmap(
                 images.getMondrianImage().Scale(dim,dim).ConvertToBitmap() )
             #icon = wx.Icon('bmp_source/mondrian.ico', wx.BITMAP_TYPE_ICO)
@@ -918,6 +918,9 @@ class MyApp(wx.App):
         the main frame when it is time to do so.
         """
 
+        # For debugging
+        #self.SetAssertMode(wx.PYAPP_ASSERT_DIALOG)
+
         # Normally when using a SplashScreen you would create it, show
         # it and then continue on with the applicaiton's
         # initialization, finally creating and showing the main