another fix for undo/redo

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44838 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Roman Rolinsky
2007-03-15 22:39:26 +00:00
parent 75cbbafdeb
commit f2ccaa2279
2 changed files with 2 additions and 1 deletions

View File

@@ -242,7 +242,7 @@ class ParamPage(wx.Panel):
# Save current state # Save current state
def SaveState(self): def SaveState(self):
self.origChecks = map(lambda i: (i[0], i[1].GetValue()), self.checks.items()) self.origChecks = map(lambda i: (i[0], i[1].GetValue()), self.checks.items())
self.origControls = map(lambda i: (i[0], i[1].GetValue(), i[1].IsEnabled()), self.origControls = map(lambda i: (i[0], i[1].GetValue(), i[1].enabled),
self.controls.items()) self.controls.items())
if self.controlName: if self.controlName:
self.origName = self.controlName.GetValue() self.origName = self.controlName.GetValue()

View File

@@ -36,6 +36,7 @@ class PPanel(wx.Panel):
wx.Panel.__init__(self, parent, -1, name=name) wx.Panel.__init__(self, parent, -1, name=name)
self.modified = self.freeze = False self.modified = self.freeze = False
def Enable(self, value): def Enable(self, value):
self.enabled = value
# Something strange is going on with enable so we make sure... # Something strange is going on with enable so we make sure...
for w in self.GetChildren(): for w in self.GetChildren():
w.Enable(value) w.Enable(value)