def __init__(self, v, text="Hello Cruel World! ",repeat=True, affinity=None):
Idler.__init__(self, v, affinity=affinity)
self.mk = MessageKeeper(v)
- self.text = self.clean_text(text) + " "
+ self.text = " " + self.clean_text(text) + " "
msg = [("",False, None),(self.text, repeat, IDLER_TEXT_SPEED)]
self.mk.set_messages(msg)
text = lines.replace('\n', ' ').replace('\r', '')
StringIdler.__init__(self, v, text,repeat=False, affinity=affinity)
+ def reset(self):
+ self.__init__(self.v, affinity=self._affinity)
+
class PipeIdler(StringIdler):
def __init__(self, v, command, args, affinity = 5):
FileIdler(v, '/usr/share/common-licenses/GPL-2',affinity=2),
#
PipeIdler(v, "/usr/bin/getent", "passwd"),
- FortuneIdler(v),
+ FortuneIdler(v,affinity=20),
]
disabled = [
]