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:
@@ -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):
|
||||
|
@@ -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()
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user