Applied pre/post sync hooks

Patch from Sylvain FORET in refs #71
This commit is contained in:
John Goerzen
2008-10-01 00:03:04 -05:00
parent c886987a5b
commit ab43d74549
4 changed files with 33 additions and 0 deletions

View File

@ -127,6 +127,10 @@ class BlinkenBase:
return tf
finally:
s.tflock.release()
def callhook(s, msg):
s.gettf().setcolor('white')
s.__class__.__bases__[-1].callhook(s, msg)
def sleep(s, sleepsecs):
s.gettf().setcolor('red')