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.6.tar.gz (3.3 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.6-py2.py3-none-any.whl (4.0 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

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

File hashes

Hashes for gifanimus-0.6.tar.gz
Algorithm Hash digest
SHA256 094075914afbaece9e6126116fbf9176c6930409376ea5db101bb38d9ac29709
MD5 1d7e7638b380f989e019d0e741f604e2
BLAKE2b-256 1f8fa0e8a54b488907a9e84b942e680b3bfb1d6cefb56b0da84bb1247a4004dc

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for gifanimus-0.6-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 7d2292ddee02a48b5983d3e200d49b161b8e7ad1fc6e62d834ee985be686870e
MD5 5792dd5b7a8d5eb3f4874ad1ca921dc4
BLAKE2b-256 7663e56b41573477a36591ae39ae8612ce9ce123fcab63cc9339214926cc66ef

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