Update README.md
This commit is contained in:
parent
d3636ebd58
commit
05fdce5b3c
|
@ -43,7 +43,7 @@ tkVideo is a Python module for playing videos in GUIs created with tkinter. It d
|
||||||
### Built With
|
### Built With
|
||||||
|
|
||||||
* [tkinter (Python built-in)](https://docs.python.org/3/library/tkinter.html)
|
* [tkinter (Python built-in)](https://docs.python.org/3/library/tkinter.html)
|
||||||
* [imageio](imageio.github.io)
|
* [imageio](https://imageio.github.io)
|
||||||
* [Pillow](https://pypi.org/project/Pillow/)
|
* [Pillow](https://pypi.org/project/Pillow/)
|
||||||
|
|
||||||
|
|
||||||
|
@ -82,7 +82,7 @@ This will create a shim between your code and the module binaries that gets upda
|
||||||
|
|
||||||
* Import tkinter and tkvideo
|
* Import tkinter and tkvideo
|
||||||
* Create `Tk()` parent and the label you'd like to use
|
* Create `Tk()` parent and the label you'd like to use
|
||||||
* Create `tkvideo.tkvideo` object with its parameters (video file path, label name, whether to loop the video or not and size of the video)
|
* Create `tkvideo` object with its parameters (video file path, label name, whether to loop the video or not and size of the video)
|
||||||
* Start the player thread with `<player_name>.play()`
|
* Start the player thread with `<player_name>.play()`
|
||||||
* Start the Tk main loop
|
* Start the Tk main loop
|
||||||
|
|
||||||
|
@ -94,7 +94,7 @@ from tkvideo import tkvideo
|
||||||
root = Tk()
|
root = Tk()
|
||||||
my_label = Label(root)
|
my_label = Label(root)
|
||||||
my_label.pack()
|
my_label.pack()
|
||||||
player = tkvideo.tkvideo("C:\\path\\to\\video.mp4", my_label, loop = 1, size = (1280,720))
|
player = tkvideo("C:\\path\\to\\video.mp4", my_label, loop = 1, size = (1280,720))
|
||||||
player.play()
|
player.play()
|
||||||
|
|
||||||
root.mainloop()
|
root.mainloop()
|
||||||
|
@ -126,4 +126,4 @@ Project Link: [https://github.com/huskeee/tkvideo](https://github.com/huskeee/tk
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
##### Readme file created using [Othneil Drew's awesome template ♥](https://github.com/othneildrew/Best-README-Template)
|
##### Readme file created using [Othneil Drew's awesome template ♥](https://github.com/othneildrew/Best-README-Template)
|
||||||
|
|
Loading…
Reference in a new issue