def enter(): global image, font, weather, weatherSub, EnterTime, StackTime global FadeAlpha, ChangeScene, EnterScene, ChangeCity font = Load.font image = Load.image weather = Load.Weather weatherSub = Load.WeatherSub EnterTime = datetime.now() FadeAlpha = 1.0 ChangeScene = None EnterScene = True ChangeCity = None t = datetime.now() - EnterTime StackTime += t.seconds Load.UpdateWeatherSubWithTick(StackTime, True) pass
def update(): global StackTime, EnterTime t = datetime.now() - EnterTime StackTime += t.seconds Load.UpdateWeatherSubWithTick(StackTime)