0

I'm trying to put someting like tk.CTkEntry(master=self, placeholder_text="Amount") in a list (or anything alse). I think I tried every "list like" option.

Any Ideas how to do that ?

It schould be someting like:

button[1] = tk.CTkEntry(master=self, placeholder_text="Amount")

3
  • 2
    What are you trying to do exactly? button[1] = tk.CTkEntry(master=self, placeholder_text="Amount") should work, assuming button is a list. Please try to include a minimal reproducible example in the body of your question.
    – JRiggles
    Commented Apr 19 at 19:10
  • button.append(tk.CTkEntry(...)) to add the button to the list.
    – Barmar
    Commented Apr 19 at 20:03
  • Using .append() completely solved the problem. Thank you. Commented Apr 20 at 11:31

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.