diff options
author | shravanrajrk <shrash@gmail.com> | 2014-06-16 19:36:35 +0530 |
---|---|---|
committer | shravanrajrk <shrash@gmail.com> | 2014-06-16 19:36:35 +0530 |
commit | f5b8ce45fc5bbc1f75b8fe24dee28ae5f65bc587 (patch) | |
tree | 84f84045c941f534d5f7f4fe379478e0f65d8a3d | |
parent | 114d327ba2838239da46d9f641ca63f838fd2e30 (diff) |
Update value.py
In def decrease() function the following lines was copied from increase function
if valuei.currentValue >= valuei.minimumValue:
raise LdtpServerException('Maximum limit reached')
hence the function was always throwing exception when you try to decrease the value of slider/spin control so changed to
if valuei.currentValue <= valuei.minimumValue:
raise LdtpServerException('Minimum limit reached')
-rw-r--r-- | ldtpd/value.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ldtpd/value.py b/ldtpd/value.py index a99f9b0..aa3b277 100644 --- a/ldtpd/value.py +++ b/ldtpd/value.py @@ -466,7 +466,7 @@ class Value(Utils): i = 0 flag = False while i < iterations: - if valuei.currentValue >= valuei.minimumValue: + if valuei.currentValue <= valuei.minimumValue: raise LdtpServerException('Maximum limit reached') valuei.currentValue -= 1.0 time.sleep(1.0/100) |