mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-04 19:10:09 +01:00
Initial port of wxPython demo from Classic to Phoenix.
Pulled and squashed from https://github.com/RobinD42/Phoenix/pull/7 Thanks Metallicow! git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@74199 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -14,11 +14,11 @@ class TestCheckBox(wx.Panel):
|
||||
cb2 = wx.CheckBox(self, -1, "Oranges")#, (65, 60), (150, 20), wx.NO_BORDER)
|
||||
cb2.SetValue(True)
|
||||
cb3 = wx.CheckBox(self, -1, "Pears")#, (65, 80), (150, 20), wx.NO_BORDER)
|
||||
|
||||
|
||||
cb4 = wx.CheckBox(self, -1, "3-state checkbox",
|
||||
style=wx.CHK_3STATE|wx.CHK_ALLOW_3RD_STATE_FOR_USER)
|
||||
cb5 = wx.CheckBox(self, -1, "Align Right", style=wx.ALIGN_RIGHT)
|
||||
|
||||
|
||||
|
||||
self.Bind(wx.EVT_CHECKBOX, self.EvtCheckBox, cb1)
|
||||
self.Bind(wx.EVT_CHECKBOX, self.EvtCheckBox, cb2)
|
||||
@@ -40,14 +40,14 @@ class TestCheckBox(wx.Panel):
|
||||
border.Add(st, 0, wx.ALL, 15)
|
||||
border.Add(sizer, 0, wx.LEFT, 50)
|
||||
self.SetSizer(border)
|
||||
|
||||
|
||||
|
||||
def EvtCheckBox(self, event):
|
||||
self.log.write('EvtCheckBox: %d\n' % event.IsChecked())
|
||||
cb = event.GetEventObject()
|
||||
if cb.Is3State():
|
||||
self.log.write("\t3StateValue: %s\n" % cb.Get3StateValue())
|
||||
|
||||
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
@@ -59,7 +59,7 @@ def runTest(frame, nb, log):
|
||||
|
||||
|
||||
overview = """\
|
||||
A checkbox is a labelled box which is either on (checkmark is visible) or off
|
||||
A checkbox is a labelled box which is either on (checkmark is visible) or off
|
||||
(no checkmark).
|
||||
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user