Skip to content

Commit

Permalink
Set status when we change color
Browse files Browse the repository at this point in the history
  • Loading branch information
dsp committed Mar 20, 2011
1 parent bfde959 commit 383b159
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ubcolorgui.py
Expand Up @@ -101,11 +101,13 @@ def lamp_cb(self, cb):

def fade_color(self, r, g, b, t):
print "Fade color to 0x%x%x%x" % (r,g,b)
self.set_status('color', "Fade to 0x%x%x%x" % (r,g,b))
self.lamp_cb(
lambda s: s.timedfade(r,g,b,t))

def set_color(self, r, g, b):
print "Set color to 0x%x%x%x" % (r,g,b)
self.set_status('color', "Set to 0x%x%x%x" % (r,g,b))
self.lamp_cb(
lambda s: s.setcolor(r,g,b))

Expand Down

0 comments on commit 383b159

Please sign in to comment.