In this blog we will learn how to add splash window in tkinter. To start this first we will know about splash window.
What is splash window ?
A splash window or screen is a particular window or screen on a website or piece of software that displays while the application or other item is loading. After the load is complete, the user is generally taken to another more functional screen. The splash screen is generally just a display screen to orient users and give them something to look at while hardware is working to present the software to them.
A splash screen is also known as a start screen or startup screen.
Here we add small code which is written in python tkinter :
First import all library in python main file :
Code of splash.py
from tkinter import *
from tkinter import ttk
from PIL import ImageTk,Image
from tkinter import messagebox
sroot = Tk()
spath = "images/mypic.png"
simg = ImageTk.PhotoImage(Image.open(spath))
my = Label(sroot,image=simg)
my.image = simg
lbl1 = Label(sroot,text="Welcome to Codersarts",font='Timesnewroman 20 ',fg='blue')
lbl1.pack(padx = 100, pady = 100)
root = Tk()
#AddWindowFunctionalityHere(like widgets, etc)
# After this call the main window here
If you want to read other codersarts arts top rated blog then click here
If you like Codersarts blog and looking for Programming Assignment Help Service,Database Development Service,Web development service,Mobile App Development, Project help, Hire Software Developer,Programming tutors help and suggestion you can send mail at firstname.lastname@example.org.
Please write your suggestion in comment section below if you find anything incorrect in this blog post