Some little tweaks for debugging

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24703 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2003-12-03 03:26:20 +00:00
parent e8e24dfa93
commit c38400d026
2 changed files with 8 additions and 5 deletions

View File

@@ -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
#----------------------------------------------------------------------------

View 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...")