Answer the question
In order to leave comments, you need to log in
How to fix the instant closing of the program?
I want to try the program in full screen, but when I run it, it opens and ends instantly, how can I make it hang until manually terminated?
from tkinter import *
import pyautogui
import pygame
screen = Tk()
screen.attributes("-fullscreen", True)
screen.configure(background="#1c1c1c")
pyautogui.FAILSAFE = False
pygame.init()
screen.update()
screen.after(300)
PS I'm sorry that I'm just copy-pasting the code (I don't know how to make it a separate block)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question