1 #!/usr/local/bin/python
3 from foztools import Slider
11 win.master.title("Slider Demo")
12 self.progress1=Slider(win, fillColor="red", labelColor="yellow",
13 value=0, width=200, height=15,
14 appearance="sunken", autoLabel="false",
16 labelText="Gary.Foster@corp.sun.com",
17 orientation="horizontal", bd=3)
18 self.progress2=Slider(win, fillColor="blue", labelColor="black",
19 background="white", value=250, width=50,
20 height=200, appearance="raised", max=250,
21 labelFormat="%d", orientation="vertical", bd=4)
22 self.progress1.frame.pack()
23 self.progress2.frame.pack()
25 self.progress1.frame.after(1000, self.update)
29 def update(self, event=None):
33 bar1.value=bar1.value+self.increment1
34 if bar1.value > bar1.max:
36 bar1.fillColor="green"
38 if bar1.value < bar1.min:
41 bar1.labelColor="yellow"
43 bar1.frame.after(100, self.update)
45 bar2.value=bar2.value+self.increment2
46 if bar2.value > bar2.max:
48 if bar2.value < bar2.min:
55 if __name__=="__main__":