X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/eb0f373c99a98633a1a9125f6eac632a0ceafe9d..55f9f0cbc8dcf45f8d484b2f931c5c254d4404d1:/wxPython/demo/wxToggleButton.py diff --git a/wxPython/demo/wxToggleButton.py b/wxPython/demo/wxToggleButton.py index b184437ab7..74d34d3f77 100644 --- a/wxPython/demo/wxToggleButton.py +++ b/wxPython/demo/wxToggleButton.py @@ -15,12 +15,12 @@ class TestPanel(wxPanel): self.log = log panel = wxPanel(self, -1) buttons = wxBoxSizer(wxHORIZONTAL) - for word in string.split("These are toggle buttons"): + for word in "These are toggle buttons".split(): b = wxToggleButton(panel, -1, word) EVT_TOGGLEBUTTON(self, b.GetId(), self.OnToggle) buttons.Add(b, flag=wxALL, border=5) - panel.SetAutoLayout(true) + panel.SetAutoLayout(True) panel.SetSizer(buttons) buttons.Fit(panel) panel.Move((50,50))