-
Notifications
You must be signed in to change notification settings - Fork 1k
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 "<numbers>update/check_dpi_scaling" #2460
Comments
Why are you creating Two instances of By the way, it's a bug needs to be fixed causes looping contradictions in Regards. |
To be clear, I don't want multiple windows at the same time. I am trying to create one GUI, utilize it, destroy it, then create a second GUI. Perhaps I should be passing the window as an argument to the second GUI instead, as:
?? This is easy in my example, however, it's not such a straightforward change within my real code. If there's a way to keep the behavior of destroying the first window and then creating a second without generating this error and having to pass the window through as an argument, that would be ideal. |
The case you just described. You should still use In your very “first example: def create_second_gui():
window = ctk.CTkToplevel()
window.title('Second GUI')
fig = Figure.Figure(figsize=(5, 4))
t = [i/100 for i in range(100)]
fig.add_subplot(111).plot(t, [i**2 for i in t])
canvas = FigureCanvasTkAgg(fig, master=window)
canvas.draw()
canvas.get_tk_widget().pack(side=ctk.TOP, fill=ctk.BOTH, expand=1) No need to use Although, the exact behaviour you want, need to be fixed when owner of this repo accept some PRs regarding this issue. Regards. |
I am creating data reduction software and the general workflow is to view a list of analysis sequences, select one, and then go to view a plot of raw data. I'm getting this cryptic error when I switch from one GUI to the next:
Here is a reproducible example:
Am I doing something wrong? If so, what?
The text was updated successfully, but these errors were encountered: