def on_swipe_right(self):
# Vyvoláno p?i tažení prstu doprava na obrazovkách obsahující
# GestureListener
self.sm.transition = SlideTransition(direction="right")
if self.sm.current_screen.name == "GameScreen":
self.sm.current = "PartylineScreen"
self.chat.text = ""
self.chat.unread.opacity = 0
else:
try:
if self.sm.current_screen.input.focus:
self.sm.current_screen.input.focus = False
except:
pass
self.sm.current = "StatsScreen"
print "< swipe right >"
评论列表
文章目录