]> git.saurik.com Git - wxWidgets.git/commitdiff
Some little tweaks for debugging
authorRobin Dunn <robin@alldunn.com>
Wed, 3 Dec 2003 03:26:20 +0000 (03:26 +0000)
committerRobin Dunn <robin@alldunn.com>
Wed, 3 Dec 2003 03:26:20 +0000 (03:26 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24703 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/demo/run.py
wxPython/demo/wxButton.py

index c3de97bec5b8322b83803d9c9797994c2847899d..99d76f574577096fe268e0bd0360c999732648df 100755 (executable)
@@ -18,12 +18,16 @@ on the command line.
 """
 
 import wx                  # This module uses the new wx namespace
+import sys, os
+
+# stuff for debugging
 print "wx.VERSION_STRING = ", wx.VERSION_STRING
+print "pid:", os.getpid()
+##raw_input("Press a key...")
 
 assertMode = wx.PYAPP_ASSERT_DIALOG
 ##assertMode = wx.PYAPP_ASSERT_EXCEPTION
 
-import sys, os
 
 #----------------------------------------------------------------------------
 
index 159d06b32865f1e60d386f0a0d202f04b96c5e9a..eaaefd2e6d0afbb12b153e9024153ee463beb21a 100644 (file)
@@ -11,13 +11,12 @@ class TestPanel(wxPanel):
                          style=wxNO_FULL_REPAINT_ON_RESIZE)
         self.log = log
 
-        b = wxButton(self, 10, "Hello", wxPoint(20, 20))
+        b = wxButton(self, 10, "Default Button", wxPoint(20, 20))
         EVT_BUTTON(self, 10, self.OnClick)
-        b.SetBackgroundColour(wxBLUE)
-        b.SetForegroundColour(wxWHITE)
         b.SetDefault()
+        b.SetSize(b.GetBestSize())
 
-        b = wxButton(self, 20, "HELLO AGAIN!", wxPoint(20, 60), wxSize(120, 45))
+        b = wxButton(self, 20, "HELLO AGAIN!", wxPoint(20, 80), wxSize(120, 45))
         EVT_BUTTON(self, 20, self.OnClick)
         b.SetToolTipString("This is a Hello button...")