Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # как можно заменить стандартные transition:
- init python:
- mtime = 1.5 # время в пути
- moveinleft = MoveTransition(mtime, enter=_moveleft)
- moveinright = MoveTransition(mtime, enter=_moveright)
- moveoutleft = MoveTransition(mtime, leave=_moveleft)
- moveoutright = MoveTransition(mtime, leave=_moveright)
- init:
- image t = Text("{size=128}@")
- label start:
- show t with moveinleft
- hide t with moveoutright
- show t with moveinright
- # а можно прямо так, если нужно поменять "время в пути" на лету:
- hide t with MoveTransition(2.0, leave=_moveright)
- return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement