Skip to main content

A Simple Gif Animation Window, By: Fibo Metavinci

Project description

gifanimus

A very simple package for playing looped gifs

Install the package with pip:

pip install gifanimus

 

Simple Example:

from gifanimus import GifAnimation
import time

##Create a new loading animation
loading = GifAnimation('./loading.gif', 1000, True, 'LOADING...')

time.sleep(3)
##Start the animation
loading.Play()

time.sleep(10)

##Stop the animation
loading.Stop()

 

GifAnimation class parameters:

gifDir: is a string that represents the directory path of the gif file.

frameDelay: is an optional parameter representing the delay between
frames in milliseconds. Default value is 1000ms (1 second). This delay is divided by the total number of frames in the gif, so it effectively controls the play speed of the gif.

loop: defines whether the animation should repeat after reaching the
last frame. It's set to True by default, but can be changed to False
if you want the animation to stop at the last frame.

consoleMsg: is an optional string that will be displayed in the console while the animation is running.

quiet: is an optional boolean, if true nothing will be output to the termnal when gif animation is playing.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gifanimus-0.4.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gifanimus-0.4-py2.py3-none-any.whl (3.1 kB view details)

Uploaded Python 2Python 3

File details

Details for the file gifanimus-0.4.tar.gz.

File metadata

  • Download URL: gifanimus-0.4.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.21

File hashes

Hashes for gifanimus-0.4.tar.gz
Algorithm Hash digest
SHA256 4afccf81b9871981ae8327e9ee68b16712bedd20f9833f6ef68840b718ffc9a4
MD5 2320ac875989fa103e1ddaf8d575deee
BLAKE2b-256 ce2fd6c582dc4847c7b7076327043d5b422653e02aafbeeafd7d33a45845b69b

See more details on using hashes here.

File details

Details for the file gifanimus-0.4-py2.py3-none-any.whl.

File metadata

  • Download URL: gifanimus-0.4-py2.py3-none-any.whl
  • Upload date:
  • Size: 3.1 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.21

File hashes

Hashes for gifanimus-0.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 c5b47dbcdb65204ec8605ee9d6fad4675c575ac8d02627ca759ddceef5dd86ae
MD5 77705ff39479a907a8c88e750b381297
BLAKE2b-256 bd7481c4ab80bbb94a755c885c631e619beae675f48a43a60ebe727bdf38f4f6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page