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 😁

These are some examples on how to use this module 🤨 :

import tkinter
import tksplash

window = tkinter.Tk() #making a basic window 

width = window.winfo_screenwidth() # getting the screen width
height = window.winfo_screenheight() # getting the screen height

window.geometry("%dx%d" % (width, height)) # setting the window with respect to the height and width

tksplash.splash_screen(window, "Hello World", width, height, 100) # this impliments the splash_screen

window.mainloop()

the tksplash.splash_screen() takes in exactly 8 arguments and out of which only 5 are required the other 3 are optional 😏

window, text, width, height, font_size

these are the required values 👆👆

font_style , text_colour , time_after_which_it_should_destroy

these are the optional values 👆👆


window--> you have to provide the name of the window 🖥

text--> the text you want to display 📕

widht--> the width of the window

height--> the height of the window

font_size--> the value for the font size 🔈 🔉 🔊

font_style--> which font style do you want ?? 😎

text_colour--> the colour of the fonts 🌈

time_after_which_it_should_destroy --> the time that the text is being shown 🕛


An example using all the arguments

import tkinter
import tksplash

window = tkinter.Tk()
width = window.winfo_screenwidth()
height = window.winfo_screenheight()

window.geometry("%dx%d" % (width, height))

tksplash.splash_screen(window, "Hello World", width, height, 100, font_style="Lucida Grande", text_colour='white',time_after_which_it_should_destroy=3000)

window.mainloop()

⚠⚠⚠⚠

Note->the text_colour can even be written as #FF002D 🌈

Note->the time_after_which_it_should_destroy is calculated in milliseconds(ms) so just multiply the number of seconds with 1000 so 5 seconds would be written as 5000 🕛

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.3.tar.gz (2.6 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.3-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tksplash-0.0.3.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.5

File hashes

Hashes for tksplash-0.0.3.tar.gz
Algorithm Hash digest
SHA256 fe4c72ef3e1614e1138428ca1bfbd2fe31fd9bf0844ade03971da5f75ff8eae4
MD5 357a16a2d6769e2a5275ed8b45b66eaf
BLAKE2b-256 476c373b028294bfb3da644d67173ad6ee23f5630a7e1c26c865b2269eb19abc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tksplash-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 2.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.5

File hashes

Hashes for tksplash-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 03c5eec0d6d29a19b81db48ec9da8c5b6576ad17c1c81689508c89c99005c6fd
MD5 a9588874d3d5047a6f578ed02b1b9561
BLAKE2b-256 d2f031e47210245b795383ff570704c735da9edd88d0dbe694953b4b0670aeeb

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