Skip to content

mainloop throwing error #2234

Closed Answered by Anonymous6598
BhagyaJyoti22006 asked this question in Q&A
Discussion options

You must be logged in to vote

this is 100% solution. When you check it, mark it as an answer:

from customtkinter import *
from sys import *

splash = CTk()
splash.title("splash")
splash.geometry("300x200")

splash_label = CTkLabel(splash, text="splash screen text")
splash_label.place(x=4,y=8)

def run_app():
    splash.mainloop()

def window():
    splash.withdraw()
    splash.quit()
    root=CTk()
    root.title("title")
    root.geometry("500x550")
    root.protocol("WM_DELETE_WINDOW", exit)
    root.mainloop()
    
splash.after(3000, window)

run_app()
#it disappears

Replies: 18 comments 39 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Anonymous6598
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Anonymous6598
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@Anonymous6598
Comment options

@Anonymous6598
Comment options

Comment options

You must be logged in to vote
15 replies
@BhagyaJyoti22006
Comment options

@BhagyaJyoti22006
Comment options

@Anonymous6598
Comment options

@Anonymous6598
Comment options

@BhagyaJyoti22006
Comment options

Answer selected by BhagyaJyoti22006
Comment options

You must be logged in to vote
2 replies
@Anonymous6598
Comment options

@BhagyaJyoti22006
Comment options

Comment options

You must be logged in to vote
18 replies
@Anonymous6598
Comment options

@BhagyaJyoti22006
Comment options

@Anonymous6598
Comment options

@BhagyaJyoti22006
Comment options

@BhagyaJyoti22006
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #2233 on January 26, 2024 22:07.