def onSave(self, dataSection): PyGUIBase.onSave(self, dataSection) dataSection.writeBool('isHorizontal', self.isHorizontal) dataSection.writeFloat('minValue', self.minValue) dataSection.writeFloat('maxValue', self.maxValue) dataSection.writeFloat('stepSize', self.stepSize) VisualStateComponent.onSave(self, dataSection)
def onSave(self, dataSection): PyGUIBase.onSave(self, dataSection) dataSection.writeBool('buttonDisabled', self.buttonDisabled) dataSection.writeString('buttonStyle', self.buttonStyle) if self.groupName != '': dataSection.writeString('groupName', self.groupName) dataSection.writeInt('groupDepth', self.groupDepth) VisualStateComponent.onSave(self, dataSection)