X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cf952100f3b51344d1c9d01b9c92d59fabd57f37..3a5608d3cfc52e49b6bd39bf0f7c10fc0edea74e:/wxPython/wx/tools/pywxrc.py?ds=sidebyside diff --git a/wxPython/wx/tools/pywxrc.py b/wxPython/wx/tools/pywxrc.py index 997e2b81d0..9093b2e125 100644 --- a/wxPython/wx/tools/pywxrc.py +++ b/wxPython/wx/tools/pywxrc.py @@ -227,7 +227,7 @@ class XmlResourceCompiler: windowClass = re.sub("^wx", "", windowClass) windowName = topWindow.getAttribute("name") - if windowClass == "Menu": + if windowClass in ["Menu", "MenuItem"]: outputList.append(self.templates.MENU_CLASS_HEADER % locals()) else: outputList.append(self.templates.CLASS_HEADER % locals())