From: Robin Dunn Date: Fri, 5 Apr 2002 21:47:58 +0000 (+0000) Subject: more tweaks for API changes X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/0f5fa1118190e313a22236028f6348eddebf9ab0?ds=sidebyside more tweaks for API changes git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14960 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/wxPython/samples/pySketch/pySketch.py b/wxPython/samples/pySketch/pySketch.py index defc0b9b71..57edf205fd 100644 --- a/wxPython/samples/pySketch/pySketch.py +++ b/wxPython/samples/pySketch/pySketch.py @@ -182,11 +182,11 @@ class DrawingFrame(wxFrame): menuBar.Append(self.editMenu, "Edit") self.toolsMenu = wxMenu() - self.toolsMenu.Append(menu_SELECT, "Selection", checkable=true) - self.toolsMenu.Append(menu_LINE, "Line", checkable=true) - self.toolsMenu.Append(menu_RECT, "Rectangle", checkable=true) - self.toolsMenu.Append(menu_ELLIPSE, "Ellipse", checkable=true) - self.toolsMenu.Append(menu_TEXT, "Text", checkable=true) + self.toolsMenu.Append(menu_SELECT, "Selection", kind=wxITEM_CHECK) + self.toolsMenu.Append(menu_LINE, "Line", kind=wxITEM_CHECK) + self.toolsMenu.Append(menu_RECT, "Rectangle", kind=wxITEM_CHECK) + self.toolsMenu.Append(menu_ELLIPSE, "Ellipse", kind=wxITEM_CHECK) + self.toolsMenu.Append(menu_TEXT, "Text", kind=wxITEM_CHECK) menuBar.Append(self.toolsMenu, "Tools") @@ -1595,12 +1595,12 @@ class DrawingFrame(wxFrame): is checked in the pop-up menu. """ menu = wxMenu() - menu.Append(id_LINESIZE_0, "no line", checkable=true) - menu.Append(id_LINESIZE_1, "1-pixel line", checkable=true) - menu.Append(id_LINESIZE_2, "2-pixel line", checkable=true) - menu.Append(id_LINESIZE_3, "3-pixel line", checkable=true) - menu.Append(id_LINESIZE_4, "4-pixel line", checkable=true) - menu.Append(id_LINESIZE_5, "5-pixel line", checkable=true) + menu.Append(id_LINESIZE_0, "no line", kind=wxITEM_CHECK) + menu.Append(id_LINESIZE_1, "1-pixel line", kind=wxITEM_CHECK) + menu.Append(id_LINESIZE_2, "2-pixel line", kind=wxITEM_CHECK) + menu.Append(id_LINESIZE_3, "3-pixel line", kind=wxITEM_CHECK) + menu.Append(id_LINESIZE_4, "4-pixel line", kind=wxITEM_CHECK) + menu.Append(id_LINESIZE_5, "5-pixel line", kind=wxITEM_CHECK) if lineSize == 0: menu.Check(id_LINESIZE_0, true) elif lineSize == 1: menu.Check(id_LINESIZE_1, true)