Demo tweaks

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@18476 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2003-01-01 05:17:22 +00:00
parent 27d9601235
commit 1077f448d5
3 changed files with 11 additions and 9 deletions

View File

@@ -44,10 +44,14 @@ class TestPanel(wxPanel):
wxSize(bmp.GetWidth()+10, bmp.GetHeight()+10))
EVT_BUTTON(self, 30, self.OnClick)
def OnClick(self, event):
self.log.write("Click! (%d)\n" % event.GetId())
##wxLogDebug("debug message")
## wxLog_SetLogLevel(wxLOG_Message) # ignore everything above wxLOG_Message
#----------------------------------------------------------------------
def runTest(frame, nb, log):

View File

@@ -8,9 +8,7 @@ def runTest(frame, nb, log):
data.EnableEffects(true)
font_colour = wxColour(255, 0, 0) # colour of font (red)
data.SetColour(font_colour) # set colour
##print data.GetColour()
dlg = wxFontDialog(frame, data)
dlg.SetSize((250,250))
if dlg.ShowModal() == wxID_OK:
data = dlg.GetFontData()
font = data.GetChosenFont()

View File

@@ -97,7 +97,7 @@ def runTest( frame, nb, log ):
#----------------------------------------------------------------------
overview = """
overview = """\
<html><body>
<P>
This demo shows how individual radio buttons can be used to build