Textbox function not working properly #2316
Unanswered
JohnnyFruitbasket
asked this question in
Q&A
Replies: 1 comment 1 reply
-
self.result_textbox = ctk.CTkTextbox(self, height=100, width=50, fg_color="white", text_color="black")
self.result_textbox.grid(row=12, column=0, padx=10, pady=10, sticky="ew", columnspan=3) This part should be defined outside of the function. Others configurations are ramain same. Hope, it may work. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Trying to implement a function that creates and displays a textbox. This is the function specific code so far:
While the first call of this function works just fine and it displays the textbox with the query in the app, whenever I try to call the function again it does not delete the text and seems unable to generate a new result. I tested it repeatedly and it loops fine through the function, the second time I call it in the app, it accesses the "else" part. My guess was that the delete method was unable to access the textbox, so I tried the configure method, but honestly, this was more of a wild guess. Anybody, any suggestion?
Beta Was this translation helpful? Give feedback.
All reactions