mirror of
https://github.com/TomSchimansky/CustomTkinter.git
synced 2023-08-10 21:13:13 +03:00
fixed bug when button click destroys button itself (version 1.8)
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
__version__ = "1.7"
|
||||
__version__ = "1.8"
|
||||
|
||||
from .customtkinter_button import CTkButton
|
||||
from .customtkinter_slider import CTkSlider
|
||||
|
@ -501,8 +501,8 @@ class CTkButton(tkinter.Frame):
|
||||
def clicked(self, event=0):
|
||||
if self.function is not None:
|
||||
if self.state is not tkinter.DISABLED:
|
||||
self.function()
|
||||
self.on_leave()
|
||||
self.function()
|
||||
|
||||
def set_appearance_mode(self, mode_string):
|
||||
if mode_string.lower() == "dark":
|
||||
|
Reference in New Issue
Block a user