how to hind a screen in tkinter code example
Example 1: how to rezize image in python tkinter
from tkinter import *
from PIL import ImageTk, Image
root=Tk()
image = Image.open('path_to_your_image.png')
image = image.resize((450, 350), Image.ANTIALIAS)
my_img = ImageTk.PhotoImage(image)
my_img = Label(image = my_img)
my_img.pack()
root.mainloop()
Example 2: how to make a screen in python
import pygame
pygame.init()
sh = int(500)
sw = int(500)
win = pygame.display.set_mode((sh, sw))
run = True
while run:
pygame.time.delay(100)
for event in pygame.event.get():
if event.type == pygame.QUIT:
run = False