python tkinter window fullscreen
import tkinter as tk
root = tk.Tk()
root.attributes('-fullscreen',True)
python tkinter window fullscreen
import tkinter as tk
root = tk.Tk()
root.attributes('-fullscreen',True)
splash screen in python tkinter
# READ THE COMMENTS!
<window name>.overrideredirect(1) # Replace "<window name>" with the name of your window
w = * # width for the Tk root (Replace The * With The Width Of Your Window)
h = * # height for the Tk root (Replace The * With The Height Of Your Window)
# get screen width and height
ws = <window name>.winfo_screenwidth() # width of the screen (Replace "<window name>" with the name of your window)
hs = <window name>.winfo_screenheight() # height of the screen (Replace "<window name>" with the name of your window)
# calculate x and y coordinates for the Tk root window
x = (ws/2) - (w/2)
y = (hs/2) - (h/2)
# set the dimensions of the screen
# and where it is placed
<window name>.geometry('%dx%d+%d+%d' % (w, h, x, y)) # Replace "<window name>" with the name of your window
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us