fixed entry color when disabled

This commit is contained in:
Tom Schimansky
2022-11-11 13:06:26 +01:00
parent f18ac0c81a
commit cf62427f66
6 changed files with 41 additions and 23 deletions

View File

@@ -15,14 +15,21 @@ def change_mode():
customtkinter.set_appearance_mode("dark")
def button_click_event():
dialog = customtkinter.CTkInputDialog(master=None, text="Type in a number:", title="Test")
def button_1_click_event():
dialog = customtkinter.CTkInputDialog(text="Type in a number:", title="Test")
print("Number:", dialog.get_input())
button = customtkinter.CTkButton(app, text="Open Dialog", command=button_click_event)
button.place(relx=0.5, rely=0.5, anchor=customtkinter.CENTER)
def button_2_click_event():
dialog = customtkinter.CTkInputDialog(text="long text "*100, title="Test")
print("Number:", dialog.get_input())
button_1 = customtkinter.CTkButton(app, text="Open Dialog", command=button_1_click_event)
button_1.pack(pady=20)
button_2 = customtkinter.CTkButton(app, text="Open Dialog", command=button_2_click_event)
button_2.pack(pady=20)
c1 = customtkinter.CTkCheckBox(app, text="dark mode", command=change_mode)
c1.place(relx=0.5, rely=0.8, anchor=customtkinter.CENTER)
c1.pack(pady=20)
app.mainloop()