Z
Z
zakatzakatom2019-10-02 10:37:40
pygame
zakatzakatom, 2019-10-02 10:37:40

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 question

Ask a Question

731 491 924 answers to any question