def valueChange(workspace): xlimit = 10**workspace.xLimitSlider.value() ylimit = 10**workspace.yLimitSlider.value() zlimit = 10**workspace.zLimitSlider.value() meshLayers = workspace.meshDensity.value() workspace.axisRange = [xlimit, ylimit, zlimit, meshLayers] workspace.xLimitValue.setText( "X-axis range: (-" + str(workspace.axisRange[0]) + ", " + str(workspace.axisRange[0]) + ")") workspace.yLimitValue.setText( "Y-axis range: (-" + str(workspace.axisRange[1]) + ", " + str(workspace.axisRange[1]) + ")") workspace.zLimitValue.setText( "Z-axis range: (-" + str(workspace.axisRange[2]) + ", " + str(workspace.axisRange[2]) + ")") workspace.meshDensityValue.setText( "Mesh Layers: " + str(workspace.axisRange[3]))