Skip to main content

Creates splash screens for GUIs

Project description

The tksplash module can be used to make splash screens for all of your GUIs which you make using tkinter

To use this assing the Tksplash class to a variable:

splash = tksplash.Tksplash()

and then you can fill in the arguments

it takes 5 arguments where only one is required and other are optional

window

the one above is the required value

destroy_time, font_style,text_colour',font_size

and the these are the optional values


Note->the text_colour can also be written as #RRGGBB

Note->The value of time_after_which_it_should_destroy should be entered in millisecond(ms), (1 s = 1000ms)

An example using all the arguments:

import tksplash
import tkinter

win = tkinter.Tk()
splash = tksplash.Tksplash(win, 3000, "Lucida Grande", "white")
splash.add_splash_text("hello", 500, 500)
win.mainloop()

These are some examples on how to use this module :

import tksplash
import tkinter

win = tkinter.Tk()
splash = tksplash.Tksplash(win)
splash.add_splash_text("hello", 500, 500)
win.mainloop()

the add_splash_text() takes in exactly 3 arguments

text, width, height


text--> the text you want to display

widht--> the width of the window

height--> the height of the window


Adding an image in the splash screen

splash.add_image("some.jpg", 100, 100, 250, 350)

The add_image() function takes in 5 arguments

img, img_x, img_y, place_x, place_y

these are the required values 👆👆


img--> the image you want to project on the splash screen

img_x--> the width of the image

img_y--> the height of the image

place_x--> the x value where you want to place the image

place_y--> the y value where you want to place the image


Adding image as well as text use add_image_text() function

It takes in these values

text, width, height, img, img_x, img_y, place_x, place_y,


To add a gif use add_gif()

And it takes in 3 arguments

gif,place_x,place_y


To add a gif and text use add_gif_text()

And it takes in 6 arguments

text, width ,height,gif,place_x,place_y

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

tksplash-0.0.8.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

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

tksplash-0.0.8-py3-none-any.whl (28.9 kB view details)

Uploaded Python 3

File details

Details for the file tksplash-0.0.8.tar.gz.

File metadata

  • Download URL: tksplash-0.0.8.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.4.2 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.2

File hashes

Hashes for tksplash-0.0.8.tar.gz
Algorithm Hash digest
SHA256 fd1998135e77a0411b36615a426b97042d4015faaf70039ffca3181cb34356c2
MD5 772d889119e06ec44e85f82201cf5025
BLAKE2b-256 f090d58eac58575737e407bf7b59f00ad3ce98d8ff61939c6cec22c7fe6df89d

See more details on using hashes here.

File details

Details for the file tksplash-0.0.8-py3-none-any.whl.

File metadata

  • Download URL: tksplash-0.0.8-py3-none-any.whl
  • Upload date:
  • Size: 28.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.4.2 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.2

File hashes

Hashes for tksplash-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 4677b5cc7cf6039f47e519826ad2cf253f0823a3fe62151237cfb98f43c919aa
MD5 aa1651ed39f5d737a7ab8e9fc03b9937
BLAKE2b-256 c05056321985e646f6e3f793f472c5b9c31aaccc6fa476aeb764e5da4052a65e

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