def frameToTimeTicker(self, x, pos): vals= convert_to_d_h_m_s( x ) experimentTime = "D{0} - {1:02d}:{2:02d}".format( int(vals[0])+1, int(vals[1]), int(vals[2]) ) realTime = "" if x > 0: datetime = getDatetimeFromFrame( self.conn , x ) if datetime != None: realTime = "\n" + getDatetimeFromFrame( self.conn , x ).strftime('%d-%b-%Y %H:%M:%S') return experimentTime + realTime
def frameToTimeTicker(x, pos): vals = convert_to_d_h_m_s(x) return "D{0} - {1:02d}:{2:02d}".format( int(vals[0]) + 1, int(vals[1]), int(vals[2]))