Mercurial > code > home > repos > light9
comparison light8/ExtSliderMapper.py @ 96:d1a1ded20ec7
a hack to fix bg color problems
author | dmcc |
---|---|
date | Sat, 13 Jul 2002 03:33:48 +0000 |
parents | 29a8b23d8db5 |
children | 57319ec2bfad |
comparison
equal
deleted
inserted
replaced
95:d5deeed83228 | 96:d1a1ded20ec7 |
---|---|
52 self.color_bg() | 52 self.color_bg() |
53 def color_bg(self): | 53 def color_bg(self): |
54 if self.widgets: | 54 if self.widgets: |
55 if self.isdisconnected(): | 55 if self.isdisconnected(): |
56 color = 'honeyDew4' | 56 color = 'honeyDew4' |
57 elif self.issynced(): | 57 # elif self.issynced(): |
58 # elif abs(self.extlevel.get() - self.sublevel.get()) <= 0.02: | 58 # stupid hack |
59 elif abs(self.extlevel.get() - self.sublevel.get()) <= 0.02: | |
59 color = 'honeyDew2' | 60 color = 'honeyDew2' |
60 else: # unsynced | 61 else: # unsynced |
61 color = 'red' | 62 color = 'red' |
62 | 63 |
63 if self.statuslabel: | 64 if self.statuslabel: |