X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/25832b3f2bd566e5b68f066d97e0e79d2bbbd17f..ad8b399079b5914e9a846cc1d1f002088ef0e51b:/wxPython/demo/wxCheckListBox.py

diff --git a/wxPython/demo/wxCheckListBox.py b/wxPython/demo/wxCheckListBox.py
index 39f3d006bd..72003af446 100644
--- a/wxPython/demo/wxCheckListBox.py
+++ b/wxPython/demo/wxCheckListBox.py
@@ -33,17 +33,17 @@ class TestPanel(wxPanel):
     def OnDoPopup(self, evt):
         menu = wxMenu()
         # Make this first item bold
-        item = wxMenuItem(menu, 101, "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())
         item.SetFont(nf)
         menu.AppendItem(item)
 
-        menu.AppendItem(wxMenuItem(menu, 102, "Normal Item &1"))
-        menu.AppendItem(wxMenuItem(menu, 103, "Normal Item &2"))
-        menu.AppendItem(wxMenuItem(menu, 104, "Normal Item &3"))
-        menu.AppendItem(wxMenuItem(menu, 105, "Normal Item &4"))
+        menu.AppendItem(wxMenuItem(menu, wxNewId(), "Normal Item &1"))
+        menu.AppendItem(wxMenuItem(menu, wxNewId(), "Normal Item &2"))
+        menu.AppendItem(wxMenuItem(menu, wxNewId(), "Normal Item &3"))
+        menu.AppendItem(wxMenuItem(menu, wxNewId(), "Normal Item &4"))
 
         self.PopupMenu(menu, evt.GetPosition())
         menu.Destroy()