mirror of
https://github.com/TomSchimansky/CustomTkinter.git
synced 2023-08-10 21:13:13 +03:00
fixed pointinghand bug in CTkCheckBox
This commit is contained in:
parent
3deeb2a1b6
commit
7b7f669c49
@ -24,7 +24,7 @@ def enable_macos_darkmode():
|
||||
os.system("defaults write -g NSRequiresAquaSystemAppearance -bool No")
|
||||
|
||||
sys.stderr.write("WARNING (customtkinter.enable_macos_darkmode): " +
|
||||
"This command forces macOS dark-mode on all programs." +
|
||||
"This command forces macOS dark-mode on all programs. " +
|
||||
"This can cause bugs on some other programs.\n" +
|
||||
"Disable it by calling customtkinter.disable_macos_darkmode() at the end of the program.\n")
|
||||
else:
|
||||
@ -69,7 +69,7 @@ def update_appearance_mode():
|
||||
if isinstance(AppearanceModeTracker.system_mode_listener, SystemAppearanceModeListenerNoThread):
|
||||
AppearanceModeTracker.system_mode_listener.update()
|
||||
else:
|
||||
sys.stderr.write("WARNING (customtkinter.update_theme): no need to call update_theme, because " +
|
||||
sys.stderr.write("WARNING (customtkinter.update_theme): no need to call update_appearance_mode, because " +
|
||||
"customtkinter is constantly searching for a mode change in a background thread.\n")
|
||||
|
||||
|
||||
|
@ -80,10 +80,12 @@ class CTkCheckBox(tkinter.Frame):
|
||||
self.canvas = tkinter.Canvas(master=self,
|
||||
highlightthicknes=0,
|
||||
width=self.width,
|
||||
height=self.height,
|
||||
cursor="pointinghand")
|
||||
height=self.height)
|
||||
self.canvas.pack(side='left')
|
||||
|
||||
if sys.platform == "darwin" and self.state == tkinter.NORMAL:
|
||||
self.canvas.configure(cursor="pointinghand")
|
||||
|
||||
if self.hover is True:
|
||||
self.canvas.bind("<Enter>", self.on_enter)
|
||||
self.canvas.bind("<Leave>", self.on_leave)
|
||||
|
Loading…
Reference in New Issue
Block a user