def onLoad(self, dataSection): PyGUIBase.onLoad(self, dataSection) self.isHorizontal = dataSection.readBool('isHorizontal', self.isHorizontal) self.minValue = dataSection.readFloat('minValue', self.minValue) self.maxValue = dataSection.readFloat('maxValue', self.maxValue) self.stepSize = dataSection.readFloat('stepSize', self.stepSize) VisualStateComponent.onLoad(self, dataSection)
def onLoad(self, dataSection): PyGUIBase.onLoad(self, dataSection) self.buttonStyle = dataSection.readString('buttonStyle') self.buttonDisabled = dataSection.readBool('buttonDisabled', False) self.groupName = dataSection.readString('groupName') self.groupDepth = dataSection.readInt('groupDepth', 1) VisualStateComponent.onLoad(self, dataSection)