Exemplo n.º 1
0
 def __onVehicleLeft(self, circleType, idx):
     if not self.__isPresentCircle(circleType, idx):
         return
     self.as_hideAdditionalTimerS(circleType)
     gui_event_dispatcher.destroyTimersPanelShown(shown=False)
     self.__inCircleIdx = -1
     self.__inCircleType = -1
Exemplo n.º 2
0
def _showTimerView(typeID,
                   viewID,
                   view,
                   totalTime,
                   isBubble,
                   currentTime=0,
                   secondInRow=False):
    if typeID in _SECONDARY_TIMERS:
        view.as_showSecondaryTimerS(typeID, totalTime, currentTime,
                                    secondInRow)
    else:
        view.as_showS(typeID, viewID, isBubble)
    gui_event_dispatcher.destroyTimersPanelShown(shown=True)
 def __onCollectionUpdated(self, vOs):
     self.__logDataCollection(vOs)
     self.as_setDataS(vOs)
     gui_event_dispatcher.destroyTimersPanelShown(shown=len(vOs) > 0)
Exemplo n.º 4
0
 def __onVehicleEntered(self, circleType, idx, state):
     self.__inCircleIdx = idx
     self.__inCircleType = circleType
     self.as_showAdditionalTimerS(circleType, state)
     gui_event_dispatcher.destroyTimersPanelShown(shown=True)
Exemplo n.º 5
0
def _hideTimerView(typeID, view):
    if typeID in _SECONDARY_TIMERS:
        view.as_hideSecondaryTimerS(typeID)
    else:
        view.as_hideS(typeID)
    gui_event_dispatcher.destroyTimersPanelShown(shown=False)