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.2.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

gifanimus-0.2-py2.py3-none-any.whl (3.0 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: gifanimus-0.2.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.9.19

File hashes

Hashes for gifanimus-0.2.tar.gz
Algorithm Hash digest
SHA256 9b373220b975bc4831e8fed5c86bf62c4db484453d2539167d5a01b147a3ce73
MD5 8403f811cbecae1bfdd9b1b9c776f5c7
BLAKE2b-256 eb72022936c61a9fddfb197ef8768c1c2d5bc3c03982c2f58f65ed905d992174

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gifanimus-0.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 3.0 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.9.19

File hashes

Hashes for gifanimus-0.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 e968373f21ed089a39dca2d9ed4824eefaebc42c3be8d77999b72e53b3424769
MD5 19bf67a043c4f769581d3604962c497a
BLAKE2b-256 f1f736285f91fa22c43e81fe82183cc41a008fb6be4b1ac62f2bd5bce4caba72

See more details on using hashes here.

Supported by

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