EFCircularSlider - 如何避开滑块,滑过最大值集

时间:2015-04-07 15:26:23

标签: slider circular-slider

我在项目中使用EFCircular滑块的实例。有6个滑块,每个滑块都有不同的最大值。一旦滑块达到最大值,通常如果我们进一步滑动,它会回到最小值(0)。但我想将滑块限制为其最大值,即使我们进一步尝试以顺时针方向移动滑块。当我们尝试在其值为零(0)时沿逆时针方向移动滑块时,预期会出现相同的行为。它不应该反向回去。

非常感谢任何指示或帮助。

1 个答案:

答案 0 :(得分:-1)

只需替换此方法

print ("English to Exrian Dictionary")
search = input("Enter the word you would like to translate: ")

if search == "Hello":
    print ("Ronne")
elif search == "Bye":
    print ("Zio")
else:
    print ("No matches were found for '" + search + "'")