From c38400d026f8f0f6d3f149d591b9a6a8dcbcff7c Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Wed, 3 Dec 2003 03:26:20 +0000 Subject: [PATCH] Some little tweaks for debugging git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24703 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/demo/run.py | 6 +++++- wxPython/demo/wxButton.py | 7 +++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/wxPython/demo/run.py b/wxPython/demo/run.py index c3de97bec5..99d76f5745 100755 --- a/wxPython/demo/run.py +++ b/wxPython/demo/run.py @@ -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 #---------------------------------------------------------------------------- diff --git a/wxPython/demo/wxButton.py b/wxPython/demo/wxButton.py index 159d06b328..eaaefd2e6d 100644 --- a/wxPython/demo/wxButton.py +++ b/wxPython/demo/wxButton.py @@ -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...") -- 2.45.2