Mercurial > code > home > repos > light9
view light8/io.py @ 59:001646cd5349
all mousewheel events everywhere will now pass up the tree to be caught by
all mousewheel events everywhere will now pass up the tree to be caught by
higher widgets. if things get slow, this might be the problem
author | drewp |
---|---|
date | Tue, 09 Jul 2002 07:36:29 +0000 |
parents | 032b2b67bc10 |
children | 177e9ba0b4a7 |
line wrap: on
line source
from parport import * class ParportDMX: def __init__(self, dummy=1, dimmers=68): self.dimmers = dimmers self.dummy = dummy if not dummy: getparport() def sendlevels(self, levels): if self.dummy: return levels = list(levels) + [0] # if levels[14] > 0: levels[14] = 100 # non-dim outstart() for p in range(1, self.dimmers + 2): outbyte(levels[p-1]*255 / 100)