Files
Phoenix/docs/sphinx/rest_substitutions/snippets/python/converted/wx.StaticBox.Enable.1.py
2018-02-13 17:13:44 -08:00

7 lines
264 B
Python

# NOTE: wxPython doesn't yet support using a control in place of the label...
check = wx.CheckBox(parent, wx.ID_ANY, "Use the box")
box = wx.StaticBox(parent, wx.ID_ANY, check)
check.Bind(wx.EVT_CHECKBOX, lambda evt: box.Enable(evt.IsChecked()))