fixed entry placeholder for textvariables and added test_entry_placeholder.py

This commit is contained in:
Tom Schimansky
2022-07-07 18:07:54 +02:00
parent 162997c7da
commit de33629e7d
6 changed files with 66 additions and 31 deletions

View File

@@ -12,7 +12,7 @@ def checkbox_event():
print("checkbox_event")
txt_var = tkinter.StringVar(value="")
entry_1 = customtkinter.CTkEntry(app, width=200, textvariable=txt_var)
entry_1 = customtkinter.CTkEntry(app, width=200, textvariable=txt_var, placeholder_text="placeholder")
entry_1.pack(pady=15)
txt_var.set("new text test")
if TEST_CONFIGURE: entry_1.configure(textvariable=txt_var)