mirror of
https://github.com/TomSchimansky/CustomTkinter.git
synced 2023-08-10 21:13:13 +03:00
fixed entry color when disabled
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user