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 also be written as #RRGGBB 🌈
Note->The value of time_after_which_it_should_destroy should be entered in millisecond(ms), (1 s = 1000ms) 🕛
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tksplash-0.0.4.tar.gz.
File metadata
- Download URL: tksplash-0.0.4.tar.gz
- Upload date:
- Size: 2.7 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e9b769bb090c9aba8c9de4d22466b037f4b37e7843563a88c9811237f86ef32d
|
|
| MD5 |
d96a2542dd46d3830631a63e723e3f7b
|
|
| BLAKE2b-256 |
c029d3df8b12b6d5ea5cee313f1a059b74994620501642b9ed5de3f4c6bf11ab
|
File details
Details for the file tksplash-0.0.4-py3-none-any.whl.
File metadata
- Download URL: tksplash-0.0.4-py3-none-any.whl
- Upload date:
- Size: 3.0 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5a9b8a8173e5cab4af820184977323143ebfc64df22ae095f905bd27d3aa114b
|
|
| MD5 |
d23d70ddfc723e259b7411ea1b4a908b
|
|
| BLAKE2b-256 |
d48e1de8403aa35d1a181467be90e610bf58f93d351113d792e213097c7bc76f
|