593 if self.CurrentNode and self.CurrentNode.IsEntry(index): |
593 if self.CurrentNode and self.CurrentNode.IsEntry(index): |
594 entry_infos = self.GetEntryInfos(index) |
594 entry_infos = self.GetEntryInfos(index) |
595 if "callback" not in entry_infos: |
595 if "callback" not in entry_infos: |
596 self.CurrentNode.SetParamsEntry(index, None, callback = value) |
596 self.CurrentNode.SetParamsEntry(index, None, callback = value) |
597 self.BufferCurrentNode() |
597 self.BufferCurrentNode() |
|
598 |
|
599 def ResetCurrentDefaultValue(self, index, subIndex): |
|
600 subentry_infos = self.GetSubentryInfos(index, subIndex) |
|
601 if "default" in subentry_infos: |
|
602 default = subentry_infos["default"] |
|
603 else: |
|
604 default = self.GetTypeDefaultValue(subentry_infos["type"]) |
|
605 self.CurrentNode.SetEntry(index, subIndex, default) |
|
606 |
598 |
607 |
599 def SetCurrentEntry(self, index, subIndex, value, name, editor): |
608 def SetCurrentEntry(self, index, subIndex, value, name, editor): |
600 if self.CurrentNode and self.CurrentNode.IsEntry(index): |
609 if self.CurrentNode and self.CurrentNode.IsEntry(index): |
601 if name == "value": |
610 if name == "value": |
602 if editor == "map": |
611 if editor == "map": |