# Dice Example from TW.API import * import Dice __bases__ = Dice, class DiceService: class DiceElement: class diceValue: def next(feature,self): print "Rolling from %s to %s" % (feature.lo*2,feature.hi*2) return randint(feature.lo,feature.hi)+randint(feature.lo,feature.hi) setupModule()