]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/wxToggleButton.py
support Show() in wxFlexGridSizer (patch 737850)
[wxWidgets.git] / wxPython / demo / wxToggleButton.py
index b184437ab7525722f956a3f19cd43cbbcf14d111..74d34d3f77196290384a2b27a2e8ba4572d82b81 100644 (file)
@@ -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))