# HG changeset patch # User Malte Bayer # Date 1351419798 -3600 # Node ID 72f5eb420096754828c94293486e5658a44055e6 # Parent 92d204c738e132d6b1780c17f35871aa1b2f03af added drive speed display for virtual slots to live screen diff -r 92d204c738e1 -r 72f5eb420096 slotUI/SlotCli.py --- a/slotUI/SlotCli.py Sun Oct 28 10:53:19 2012 +0100 +++ b/slotUI/SlotCli.py Sun Oct 28 11:23:18 2012 +0100 @@ -133,10 +133,15 @@ ), curses.color_pair(11 + idx) ) """ + if idx > 3: + namesuffix = " (%i)" % self.slot[idx]["drive"] + else: + namesuffix = "" + self.scr.addstr((3 + (self.slot[idx]["position"] * 2)), 0, "%3i | %i %15s %48s" % ( self.slot[idx]["position"], - self.slot[idx]["car"] + 1, self.slot[idx]["name"], + self.slot[idx]["car"] + 1, (self.slot[idx]["name"] + namesuffix), "", ), curses.color_pair(11 + idx) )