|
From: leau2001 <lea...@fr...> - 2006-02-10 13:42:24
|
Hi all,
I hve a problem with slider.
When i used one, the slider value init=0 and why not the mini i chose... ?
Program :
from visual.controls import *
c = controls() # Create controls window
def calcul (d,e):
#result=int(d/e)
print d, e
print txt
b = slider( pos=(-20,20), width=6, height=20, min=10000, max=100000,
action=lambda: calcul(60000,txt)) # Create a slider in the controls window:
while 1:
c.interact() # Check for mouse events and drive specified actions
txt=b.value
txt=int(txt)
print txt
#result=60000/txt
#print result
When you run this program like this, you see the slider value are on
0... and the when you touch the slider a little, slider value come's to
10000 as the min value.
But why this slider value is 0 at the beginning and not the min value ?
thx for help
lo
|