]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/wxCheckListBox.py
info about removal of wxhtml.rc
[wxWidgets.git] / wxPython / demo / wxCheckListBox.py
index 72003af446c8d1984c8c773a57a8b70d76671409..4a0fd024c7376d57c79df98457dcf87e2c6c42b5 100644 (file)
@@ -13,13 +13,17 @@ class TestPanel(wxPanel):
                       'twelve', 'thirteen', 'fourteen']
 
         wxStaticText(self, -1, "This example uses the wxCheckListBox control.",
                       'twelve', 'thirteen', 'fourteen']
 
         wxStaticText(self, -1, "This example uses the wxCheckListBox control.",
-                               wxPoint(45, 15))
+                               (45, 15))
 
 
-        lb = wxCheckListBox(self, 60, wxPoint(80, 50), wxSize(80, 120),
+        lb = wxCheckListBox(self, 60, (80, 50), (80, 120),
                             sampleList)
         EVT_LISTBOX(self, 60, self.EvtListBox)
         EVT_LISTBOX_DCLICK(self, 60, self.EvtListBoxDClick)
         lb.SetSelection(0)
                             sampleList)
         EVT_LISTBOX(self, 60, self.EvtListBox)
         EVT_LISTBOX_DCLICK(self, 60, self.EvtListBoxDClick)
         lb.SetSelection(0)
+        self.lb = lb
+
+        btn = wxButton(self, -1, "Test SetString", (180, 50))
+        EVT_BUTTON(self, btn.GetId(), self.OnTestButton)
 
         EVT_RIGHT_UP(self, self.OnDoPopup)
 
 
         EVT_RIGHT_UP(self, self.OnDoPopup)
 
@@ -30,10 +34,14 @@ class TestPanel(wxPanel):
     def EvtListBoxDClick(self, event):
         self.log.WriteText('EvtListBoxDClick:\n')
 
     def EvtListBoxDClick(self, event):
         self.log.WriteText('EvtListBoxDClick:\n')
 
+    def OnTestButton(self, evt):
+        self.lb.SetString(4, "FUBAR")
+
+
     def OnDoPopup(self, evt):
         menu = wxMenu()
         # Make this first item bold
     def OnDoPopup(self, evt):
         menu = wxMenu()
         # Make this first item bold
-        item = wxMenuItem(menu, wxNewId(), "If supported, this is &bold")
+        item = wxMenuItem(menu, wxNewId(), "If supported, this is bold")
         df = wxSystemSettings_GetSystemFont(wxSYS_DEFAULT_GUI_FONT)
         nf = wxFont(df.GetPointSize(), df.GetFamily(), df.GetStyle(), wxBOLD,
                     false, df.GetFaceName())
         df = wxSystemSettings_GetSystemFont(wxSYS_DEFAULT_GUI_FONT)
         nf = wxFont(df.GetPointSize(), df.GetFamily(), df.GetStyle(), wxBOLD,
                     false, df.GetFaceName())