Example #1
0
 def do_places(self):
     """Show race result on scoreboard."""
     self.placexfer(self.ctrl_places.get_text())
     self.meet.scbwin = None
     self.timerwin = False
     ts = None
     tp = 'Time:'
     if self.start is not None and self.finish is None:
         self.finish = tod.tod('now')
         self.set_elapsed()
     if self.timetype == '200m':
         tp = '200m:'
     et = self.time_lbl.get_text()
     if et is not None and et != '':
         ts = et
     self.meet.scbwin = scbwin.scbtable(self.meet.scb,
                                        self.meet.racenamecat(self.event),
                                        SCB_RESULT_FMT,
                                        self.results[0:4],
                                        timepfx=tp,
                                        timestr=ts,
                                        pagesz=5)
     self.meet.scbwin.reset()
     # !! is this a bug? what if there are no places/time yet?
     self.setfinished()
Example #2
0
 def do_startlist(self):
     """Show startlist on scoreboard."""
     self.meet.scbwin = None
     self.timerwin = False
     startlist = []
     for r in self.riders:
         startlist.append([
             r[COL_BIB],
             strops.fitname(r[COL_FIRST], r[COL_LAST], SCB_STARTERS_NW),
             r[COL_CLUB]
         ])
     self.meet.scbwin = scbwin.scbtable(self.meet.scb,
                                        self.meet.racenamecat(self.event),
                                        SCB_STARTERS_FMT, startlist)
     self.meet.scbwin.reset()
Example #3
0
 def do_startlist(self):
     """Show startlist on scoreboard."""
     self.meet.scbwin = None
     self.timerwin = False
     startlist = []
     for r in self.riders:
         startlist.append([r[COL_BIB],
                           strops.fitname(r[COL_FIRST],
                                          r[COL_LAST],
                                          SCB_STARTERS_NW),
                               r[COL_CLUB]])
     self.meet.scbwin = scbwin.scbtable(self.meet.scb,
                                        self.meet.racenamecat(self.event),
                    SCB_STARTERS_FMT, startlist)
     self.meet.scbwin.reset()
Example #4
0
 def do_startlist(self):
     """Show start list on scoreboard."""
     self.meet.scbwin = None
     self.timerwin = False
     startlist = []
     for r in self.riders:
         if not r[5]:
             nfo = r[4]			# Try info field
             if nfo is None or nfo == '':
                 nfo = r[3]			# fall back on club/affil
             startlist.append([r[0], strops.fitname(r[1], r[2],
                              SCB_STARTNAME_WIDTH), nfo])
     self.meet.scbwin = scbwin.scbtable(self.meet.scb,
                          self.meet.racenamecat(self.event),
                          SCB_STARTERS_FMT, startlist)
     self.meet.scbwin.reset()
Example #5
0
 def do_places(self):
     """Show race result on scoreboard."""
     resvec = []
     hdr = self.meet.racenamecat(self.event,
                     scbdo.SCB_LINELEN - 3) + ' pt'
     for r in self.riders:
         resvec.append([r[COL_PLACE], r[COL_BIB],
                      strops.fitname(r[COL_FIRST], r[COL_LAST],
                                     SCB_RESPOINTS_NW),
                      str(r[COL_TOTAL])])
     self.meet.scbwin = None
     self.meet.scbwin = scbwin.scbtable(self.meet.scb,
                                        hdr,
                             SCB_RESPOINTS_FMT,
                             resvec, delay=90, pagesz=5)
     self.meet.scbwin.reset()
     return False
Example #6
0
 def do_startlist(self):
     """Show start list on scoreboard."""
     self.meet.scbwin = None
     self.timerwin = False
     startlist = []
     for r in self.riders:
         if not r[5]:
             nfo = r[4]  # Try info field
             if nfo is None or nfo == '':
                 nfo = r[3]  # fall back on club/affil
             startlist.append([
                 r[0],
                 strops.fitname(r[1], r[2], SCB_STARTNAME_WIDTH), nfo
             ])
     self.meet.scbwin = scbwin.scbtable(self.meet.scb,
                                        self.meet.racenamecat(self.event),
                                        SCB_STARTERS_FMT, startlist)
     self.meet.scbwin.reset()
Example #7
0
 def do_places(self):
     """Show race result on scoreboard."""
     resvec = []
     hdr = self.meet.racenamecat(self.event, scbdo.SCB_LINELEN - 3) + ' pt'
     for r in self.riders:
         resvec.append([
             r[COL_PLACE], r[COL_BIB],
             strops.fitname(r[COL_FIRST], r[COL_LAST], SCB_RESPOINTS_NW),
             str(r[COL_TOTAL])
         ])
     self.meet.scbwin = None
     self.meet.scbwin = scbwin.scbtable(self.meet.scb,
                                        hdr,
                                        SCB_RESPOINTS_FMT,
                                        resvec,
                                        delay=90,
                                        pagesz=5)
     self.meet.scbwin.reset()
     return False
Example #8
0
 def do_places(self):
     """Show race result on scoreboard."""
     self.placexfer(self.ctrl_places.get_text())
     self.meet.scbwin = None
     self.timerwin = False
     ts = None
     tp = 'Time:'
     if self.start is not None and self.finish is None:
         self.finish = tod.tod('now')
         self.set_elapsed()
     if self.timetype == '200m':
         tp = '200m:'
     et = self.time_lbl.get_text()
     if et is not None and et != '':
         ts = et
     self.meet.scbwin = scbwin.scbtable(self.meet.scb,
                           self.meet.racenamecat(self.event),
                           SCB_RESULT_FMT, self.results[0:4],
                           timepfx=tp, timestr=ts,pagesz=5)
     self.meet.scbwin.reset()
     # !! is this a bug? what if there are no places/time yet?
     self.setfinished()