From 42ad19a45e7d8e8af6ff60fb0e654352404497a9 Mon Sep 17 00:00:00 2001 From: Mark Tearle Date: Wed, 22 Sep 2004 09:24:48 +0000 Subject: [PATCH] Working StringIdler (missing cleansing functions) --- sql-edition/servers/Idler.py | 7 ++++--- sql-edition/servers/MessageKeeper.py | 1 + sql-edition/servers/VendServer.py | 6 +++--- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/sql-edition/servers/Idler.py b/sql-edition/servers/Idler.py index babfab1..d2cbabb 100755 --- a/sql-edition/servers/Idler.py +++ b/sql-edition/servers/Idler.py @@ -189,8 +189,9 @@ class StringIdler(Idler): self.text = text def next(self): - #self.mk.update_display() - self.v.display(" %8.8s " % ("BOG")) + #self.mk.update_display(forced=True) + self.mk.update_display() def reset(self): - self.mk.set_message(self.text, True, None) + msg = [(self.text, True, 0.8)] + self.mk.set_messages(msg) diff --git a/sql-edition/servers/MessageKeeper.py b/sql-edition/servers/MessageKeeper.py index e9dee51..c61ce35 100755 --- a/sql-edition/servers/MessageKeeper.py +++ b/sql-edition/servers/MessageKeeper.py @@ -4,6 +4,7 @@ import sys, os, string, re, pwd, signal from HorizScroll import HorizScroll from random import random, seed +from time import time, sleep class MessageKeeper: def __init__(self, vendie): diff --git a/sql-edition/servers/VendServer.py b/sql-edition/servers/VendServer.py index 7c4a278..8942855 100755 --- a/sql-edition/servers/VendServer.py +++ b/sql-edition/servers/VendServer.py @@ -181,8 +181,10 @@ idler = None def setup_idlers(v): global idlers, idler idlers = [ - TrainIdler(v), + StringIdler(v), + StringIdler(v, text=CREDITS), GrayIdler(v), + TrainIdler(v), GrayIdler(v,one="*",zero="-"), GrayIdler(v,one="/",zero="\\"), GrayIdler(v,one="X",zero="O"), @@ -190,8 +192,6 @@ def setup_idlers(v): GrayIdler(v,one="/",zero="\\",reorder=1), GrayIdler(v,one="X",zero="O",reorder=1), ] - #StringIdler(v), - #StringIdler(v, text=CREDITS), idler = choose_idler() def choose_idler(): -- 2.20.1