-
Notifications
You must be signed in to change notification settings - Fork 389
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
enter title of bug here #600
Comments
Put |
This is a problem with tkinter, and debugging shows that mainloop recognizes style as a window |
It is not by accident. If you put it before Hence I said:
|
Obviously, tkinter.tk() instantiated Style() when it was created |
style() is essentially a tkinter wrapped control that has globally modified all variables with the tk property, so starting tk.windows () when style() is called will naturally cause the style to run as a separate window. The ttk library doesn't have much support for older widgets. It's a refactored library that inherits from tkinter, and if you want to use both, bugs are not unusual |
Desktop (please complete the following information):
window,1.10.1
Describe the bug
from ttkbootstrap import Style
Style()
import tkinter
root = tkinter.Tk()
lab=tkinter.Label(root,text="123")
lab.pack()
root.mainloop()
Two windows will appear in this code
To Reproduce
No response
Expected behavior
No response
Screenshots
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: