dabo Commit Revision 1494 Date: 2005-10-31 14:19:32 -0800 (Mon, 31 Oct 2005) Author: paul
Changed: U trunk/dabo/ui/uiwx/dFormMain.py U trunk/dabo/ui/uiwx/dMenu.py
Log: I missed a couple things in my earlier dMenu commit.
Diff: Modified: trunk/dabo/ui/uiwx/dFormMain.py =================================================================== --- trunk/dabo/ui/uiwx/dFormMain.py 2005-10-31 20:17:36 UTC (rev 1493) +++ trunk/dabo/ui/uiwx/dFormMain.py 2005-10-31 22:19:32 UTC (rev 1494) @@ -16,7 +16,8 @@ ## want to enable MDI on Windows, just take out the "False and" ## in the below if statement, and do the same in dForm.py. -if False and wx.Platform == '__WXMSW__': # Microsoft Windows +#if False and wx.Platform == '__WXMSW__': # Microsoft Windows +if True: wxFrameClass = wx.MDIParentFrame wxPreFrameClass = wx.PreMDIParentFrame else:
Modified: trunk/dabo/ui/uiwx/dMenu.py =================================================================== --- trunk/dabo/ui/uiwx/dMenu.py 2005-10-31 20:17:36 UTC (rev 1493) +++ trunk/dabo/ui/uiwx/dMenu.py 2005-10-31 22:19:32 UTC (rev 1494) @@ -67,14 +67,14 @@ def insertItem(self, pos, item): """Insert a dMenuItem before the specified position in the menu.""" - self.InsertItem(pos, item) + wxItem = self.InsertItem(pos, item) item.Parent = self self._daboChildren[wxItem.GetId()] = item def prependItem(self, item): """Insert a dMenuItem at the top of the menu.""" - self.PrependItem(item) + wxItem = self.PrependItem(item) item.Parent = self self._daboChildren[wxItem.GetId()] = item
©2005 Paul McNett |