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:
@@ -18,12 +18,16 @@ on the command line.
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
import wx # This module uses the new wx namespace
|
import wx # This module uses the new wx namespace
|
||||||
|
import sys, os
|
||||||
|
|
||||||
|
# stuff for debugging
|
||||||
print "wx.VERSION_STRING = ", wx.VERSION_STRING
|
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_DIALOG
|
||||||
##assertMode = wx.PYAPP_ASSERT_EXCEPTION
|
##assertMode = wx.PYAPP_ASSERT_EXCEPTION
|
||||||
|
|
||||||
import sys, os
|
|
||||||
|
|
||||||
#----------------------------------------------------------------------------
|
#----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
@@ -11,13 +11,12 @@ class TestPanel(wxPanel):
|
|||||||
style=wxNO_FULL_REPAINT_ON_RESIZE)
|
style=wxNO_FULL_REPAINT_ON_RESIZE)
|
||||||
self.log = log
|
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)
|
EVT_BUTTON(self, 10, self.OnClick)
|
||||||
b.SetBackgroundColour(wxBLUE)
|
|
||||||
b.SetForegroundColour(wxWHITE)
|
|
||||||
b.SetDefault()
|
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)
|
EVT_BUTTON(self, 20, self.OnClick)
|
||||||
b.SetToolTipString("This is a Hello button...")
|
b.SetToolTipString("This is a Hello button...")
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user