comparison Widgets/FlyingFader.py @ 27:bee0862f4436

Construction colors
author dmcc
date Sun, 07 Jul 2002 08:36:21 +0000
parents f0e1dde35aec
children c79d4df9d982
comparison
equal deleted inserted replaced
26:219d6fcbc28d 27:bee0862f4436
130 self.scale['troughcolor'] = self.oldtrough 130 self.scale['troughcolor'] = self.oldtrough
131 return 131 return
132 132
133 # blink the trough while the thing's moving 133 # blink the trough while the thing's moving
134 if time()%.4>.2: 134 if time()%.4>.2:
135 self.scale.config(troughcolor=self.oldtrough) 135 # self.scale.config(troughcolor=self.oldtrough)
136 self.scale.config(troughcolor='orange')
136 else: 137 else:
137 self.scale.config(troughcolor='white') 138 # self.scale.config(troughcolor='white')
139 self.scale.config(troughcolor='yellow')
138 140
139 # colorfade(self.scale, percent) 141 # colorfade(self.scale, percent)
140 self.after(30, self.gofade) 142 self.after(30, self.gofade)
141 143
142 def updatelabel(self, *args): 144 def updatelabel(self, *args):