Skip to content
This repository was archived by the owner on Mar 31, 2020. It is now read-only.

Commit 3af66e1

Browse files
committed
Old docstrings
1 parent df17c23 commit 3af66e1

File tree

1 file changed

+0
-37
lines changed

1 file changed

+0
-37
lines changed

src/animate.py

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -168,44 +168,7 @@ def running(self):
168168
@dataclass
169169
class Motion:
170170
"""
171-
Defines the movements derived from a generated vector.
172-
The result is a two dimensional generator: the first dimension yields
173-
a "frame" generator, which in turn yields move commands. This structure allows
174-
for different `speed`s of motion, as the length of the second
175-
dimension is determined by `speed`. In other words, the `speed` determines
176-
how many movements occur in one frame.
177171
178-
param:
179-
canvas: tk.Canvas -- The parent canvas to issue the move command with.
180-
id: int -- The id of the widget to be animated.
181-
endpoints: Tuple[Coord] -- The final position(s) of the widget. Multiple positions allow for
182-
more intricate pathing.
183-
speed: int (optional) -- The multipler for move commands per frame.
184-
Defaults to 1.
185-
186-
example::
187-
188-
```
189-
root = tk.Tk()
190-
191-
window = Animater(root)
192-
window.pack()
193-
194-
c1 = Coord(50, 55)
195-
c2 = Coord(60, 65)
196-
rect = window.create_rectangle(c1, c2)
197-
198-
end = c1 + Direction.RIGHT * 50
199-
end2 = end + Direction.DOWN * 50
200-
end3 = end2 + (Direction.UP + Direction.LEFT) * 50
201-
202-
animation = Motion(window, rect, (end, end2, end3), speed=1)
203-
204-
window.add_motion(animation)
205-
window.add_event('<B1-Motion>')
206-
207-
root.mainloop()
208-
```
209172
"""
210173
canvas: tk.Canvas
211174
id: int

0 commit comments

Comments
 (0)