Updates from Eli

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40698 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn 2006-08-20 05:09:17 +00:00
parent d6d222febb
commit 9389458452
2 changed files with 2 additions and 2 deletions

View File

@ -1257,7 +1257,7 @@ class PythonOptions(wx.Dialog):
if self.cfg.Read("filename", "") != "":
self.FileNameTC.SetValue(self.cfg.Read("filename"))
else:
name = os.path.splitext(dataFile)[0]
name = os.path.splitext(os.path.split(dataFile)[1])[0]
name += '_xrc.py'
self.FileNameTC.SetValue(name)
self.AutoGenerateCB.SetValue(self.cfg.ReadBool("autogenerate", False))

View File

@ -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())