mirror of
https://github.com/TomSchimansky/CustomTkinter.git
synced 2023-08-10 21:13:13 +03:00
fixed focus bug of CTk and CTkToplevel on macOS
This commit is contained in:
@@ -8,9 +8,9 @@ app.title("CustomTkinter Test")
|
||||
|
||||
|
||||
def change_state(widget):
|
||||
if widget.state == tkinter.NORMAL:
|
||||
if widget.cget("state") == tkinter.NORMAL:
|
||||
widget.configure(state=tkinter.DISABLED)
|
||||
elif widget.state == tkinter.DISABLED:
|
||||
elif widget.cget("state") == tkinter.DISABLED:
|
||||
widget.configure(state=tkinter.NORMAL)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user