Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

invalid command name #2269

Closed
H15STER opened this issue Feb 14, 2024 · 3 comments
Closed

invalid command name #2269

H15STER opened this issue Feb 14, 2024 · 3 comments

Comments

@H15STER
Copy link

H15STER commented Feb 14, 2024

Hi, I'm making my application with multiple windows. When the user clicks on the "log in" button, the window closes via self.destroy(), and another window opens, while writing this in the console:

invalid command name "332041600update" while executing "332041600update" ("after" script) invalid command name "63023232check_dpi_scaling" while executing "63023232check_dpi_scaling" ("after" script) invalid command name "332184896_click_animation" while executing "332184896_click_animation" ("after" script)

This does not affect the operation of the program, but the user will not be pleased to look at it every time

@AshhadDevLab
Copy link

Description:

This is caused when you are destroying the window first and then creating another window. something like this:

window.destroy()
anotherwindow.mainloop()

Solution:

The solution for this is to use CTkTopLevel instead of creating a new window, or you can simply move back and fourth in frames created for each window.

@H15STER
Copy link
Author

H15STER commented Feb 19, 2024 via email

@AshhadDevLab
Copy link

Thanks пн, 19 февр. 2024 г., 13:57 Ashhad Ahmed @.>:

Description: This is caused when you are destroying the window first and then creating another window. something like this: window.destroy()anotherwindow.mainloop() Solution: The solution for this is to use CTkTopLevel instead of creating a new window, or you can simply move back and fourth in frames created for each window. — Reply to this email directly, view it on GitHub <#2269 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/APTOLNJK6VHQYGD5X5KZAXLYUMOXNAVCNFSM6AAAAABDIEJFYCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNJSGA4DQOJTG4 . You are receiving this because you authored the thread.Message ID: @.
>

if this answers your question mark the question as solved!

@H15STER H15STER closed this as completed Mar 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants