pip install splashscreen_ctk
Create a splash screen for a software, typically developed in custom tkinter.
--------------------------------------------------
import splashscreen_ctk as splash
import threading, time
def do_jobs():
set_splash_text(f"Doing something...")
start_thread(do_something, "Hello,", "world")
set_splash_text(f"Doing something else...")
start_thread(do_something_else, "Goodbye,", "world!")
set_splash_text("Loading complete!")
test.close_splashscreen = True
def start_thread(target, *args):
# Use threading for complicated actions that would freeze tkinter / cause not responding warning.
loading_thread = threading.Thread(target=target, args=[arg for arg in args])
loading_thread.start()
while loading_thread.is_alive():
time.sleep(1)
def do_something(text1, text2):
print(text1, text2)
time.sleep(5)
def do_something_else(text1, text2):
print(text1, text2)
time.sleep(5)
def set_splash_text(text):
# Note changes to splash text will not work if called from any other thread than main thread.
test.splash_status_text.set(text)
test.update()
test = splash.SplashScreen("path_to_image.jpg", # Can be any image file type that works with PILLOW / CTkImage, or bytes with io.BytesIO
initial_status_value="Loading...",
app_info="Your Application v1.0.0",
app_info_font=("helvetica", 36),
app_info_text_color="#333333",
status_font=("helvetica", 18),
status_text_colour="#222222")
test.after(5, do_jobs)
test.mainloop()
--------------------------------------------------
OS independant
Python 3
install requires:
- customtkinter 0.3, url: https://pypi.org/project/customtkinter/0.3/, url: https://customtkinter.tomschimansky.com/
--------------------------------------------------
GitHub url: https://github.com/DevDolphin7/SplashScreen
PyPI url: https://pypi.org/project/splashscreen_ctk/
Get in contact: DevDolphin7@outlook.com
Metadata
Release files for splashscreen-ctk 0.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| splashscreen_ctk-0.2.2.tar.gz | 16.8 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| splashscreen_ctk-0.2.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 33.4 kB
Release files / splashscreen_ctk-0.2.2.tar.gz
| Download URL | splashscreen_ctk-0.2.2.tar.gz |
|---|---|
| Size | 16.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7f93bb69fbc2905f7587d96d92fa7d156a0706c3a087243e02fa8f871867aa19
|
|
BLAKE2b-256 checksum How to use checksums |
bfc2ef3be1e80091a1a85d0dd9c8392c626e768d05f5a63fdbd04d71cc79f4f0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.6
|
Release files / splashscreen_ctk-0.2.2-py3-none-any.whl
| Download URL | splashscreen_ctk-0.2.2-py3-none-any.whl |
|---|---|
| Size | 16.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
727a76657ff22cbd88bcddb451b683673e8d56299d714149e77600d345227435
|
|
BLAKE2b-256 checksum How to use checksums |
b71512d712606beff920d8f557c0b333dbcf78919172660bed036a5cd226d09f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.6
|
Security for splashscreen-ctk 0.2.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.