Metadata-Version: 2.1
Name: PyTkAnim
Version: 1.0.1
Summary: PyTkAnim is extension for tkinter that provides animator and simple usage.
Home-page: https://github.com/carlFandino
Author: Carl Gian D Fandiño
Author-email: giancarl.fandino@gmail.com
License: MIT
Project-URL: Source, https://github.com/carlFandino/pytkanim-1.0.1
Platform: UNKNOWN
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Classifier: Topic :: Software Development :: User Interfaces
Classifier: Development Status :: 1 - Planning
Classifier: Natural Language :: English
Description-Content-Type: text/markdown
License-File: LICENSE.txt

PyTkAnim is extension for tkinter that provides animator and simple usage.

Note:This package is under construction and many style of animations soon!
     for now you can only animate X,Y,Width and Height



> The advantages of this packages is
* Don't need to call .pack()
* Easy to understand.

> Changes 1.0.1
* added stop argument so that you know where the widget stops.
* a little bit of adjustments

# animate Y when button is clicked
# animate Y when button is clicked
```python
import tkinter as tk
from pytkanim import CustomAnimations

root = tk.Tk() 
                                   #Widget Name    can be also 'up'
Label = CustomAnimations.NormalAnimY(tk.Label(bg="Black"),"down") 
Button = tk.Button(text="Click Me",command=Label.run)
Button.pack()

root.geometry("800x600")
root.mainloop()
```


# animate X when button is clicked
```python
import tkinter as tk
from pytkanim import CustomAnimations

root = tk.Tk()
                                  #Widget Name    can be also 'backwards'
Label = CustomAnimations.NormalAnimX(tk.Label(bg="Black"),"forward") 
Button = tk.Button(text="Click Me",command=Label.run)
Button.pack()

root.geometry("800x600")
root.mainloop()
```

# You can add starter X and Y positions too! by simple doing this
```python
import tkinter as tk
from pytkanim import CustomAnimations

root = tk.Tk()

Label = CustomAnimations.NormalAnimX(tk.Label(bg="Black"),"backwards",startAX=0.5,startAY=0.5)
Button = tk.Button(text="Click Me",command=Label.run)
Button.pack()

root.geometry("800x600")
root.mainloop()
```

# and also how speed to animate is.
```python
import tkinter as tk
from pytkanim import CustomAnimations

root = tk.Tk()

Label = CustomAnimations.NormalAnimX(tk.Label(bg="Black"),"forward",startAX=0.5,startAY=0.5,speed=10) #Higher amount of speed the more it goes slower
Button = tk.Button(text="Click Me",command=Label.run)
Button.pack()

root.geometry("800x600")
root.mainloop()
```

# Stop and Continue Animation 
```python
import tkinter as tk
from pytkanim import CustomAnimations
stopped = False
root = tk.Tk()

Label = CustomAnimations.NormalAnimX(tk.Label(bg="Black"),"forward",startAX=0,startAY=0.5,speed=10)
Label.run()

def continueAndStop():
    global stopped,Label
    if stopped == False:
        stopped = True
        Label.stop()
    else:
        stopped = False
        Label.continueAnim()


Button = tk.Button(text="Stop/Continue",command=continueAndStop)
Button.pack()

root.geometry("800x600")
root.mainloop()
```

# Changing Direction
```python
import tkinter as tk
from pytkanim import CustomAnimations
direction = "backwards"
root = tk.Tk()

Label = CustomAnimations.NormalAnimX(tk.Label(bg="Black"),"forward",startAX=0,startAY=0.5,speed=10)
Label.run()

def changingDirection():
    global direction,Label
    if direction == False:
        direction = True
        Label.changeDirection("forward")
    else:
        direction = False
        Label.changeDirection("backwards")


Button = tk.Button(text="Stop/Continue",command=changingDirection)
Button.pack()

root.geometry("800x600")
root.mainloop()
```

