Mercurial > code > home > repos > light9
view NodeType.py @ 168:f8b5cb5fbeed
- CueFader is hopefully done:
- CueFader is hopefully done:
- The TimedGoButton accepts a wheel to change the times. You can also
enter times directly.
- TimedGoButton really has a default starting time of 2 now. (there was
a variable attached to the wrong widget before)
- We send DMX levels with dmxclient now.
- Autoload Times is a new option.
- We load times from the next cue if Autoload Times is true.
- Time predictions in the LabelledScale are slightly better. You still
can change the time of an active fade.
- Cue cache and DMX level computing now have their own functions, which
get called at (hopefully) All The Right Times.
- There are even some docs now!
- Cues: sub_level parsing is better, will only throw out one line if
it encounters problems (instead of the rest of the cue)
- CueList: lots of 0 vs. None bugs fixed.
- TkCueList: stores a reference to the controlling fader so it can alert
it about changed cues.
- CueEditron: You can edit sub_levels now.
- cuelist1 was edited, checking it in for consistency's sake
author | dmcc |
---|---|
date | Wed, 09 Jul 2003 03:59:40 +0000 |
parents | 45b12307c695 |
children |
line wrap: on
line source
"""each node descends from this base class""" class NodeType: def __init__(self): """TBD""" self.ops = Ops() ''' maybe self.iports = [] self.oports = [] self.params = [] ''' def get_state(self, stateaccess): """This is similar to the pickle.__getstate__ method, except we need this alternate version in order to give the node (which holds no state) access to its instance's state. If your node keeps some transient items in its state dict (such as a buffer of recently received inputs), it may want to return a copy of the state dict without those items. set_state should restore them properly (if they're missing from the current state, which they might not be). get_state might be called at any time, and it's certainly not guaranteed that the node instance is going out of service. get_state might get called to checkpoint the nodes for a backup, for example. set_state might also get called anytime. """ return stateaccess def set_state(self, stateaccess, dict): """dict (named after the pickle.__setstate__ argument) is always a value that was previously returned from get_state. Don't adjust the current nodetype's state, of course; use dict to update stateaccess. If there were elements missing from dict (see the note in get_state for why this might be the case), you should restore them here as appropriate. """ stateaccess.update(dict) def get_default_params(self): '''Returns dictionary of param names and DataType instances. DataTypes can be given values''' return {} def get_default_ports(self): '''Returns pinless port objects''' return {}