GUI almost not updating and becoming almost unresponsive with a lot of input in (a readonly) CTkTextbox
Update: I forgot to mention that this does not happen, when a simple tkinter.Text wiget is used:
textbox = tkinter.Text(root, spacing1=0, spacing2=0, spacing3=5)
Try the example: Watch the indeterminate progressbar or try to scroll. Use different ranges instead of 8000 in the example below (on my mac pro late 2013 problems start about 4000)
code:
import tkinter
import customtkinter
customtkinter.set_appearance_mode("System")
customtkinter.set_default_color_theme("blue")
root=customtkinter.CTk()
root.grid_columnconfigure(0, weight=1)
root.grid_columnconfigure(1, weight=0)
root.grid_rowconfigure(0, weight=1)
root.grid_rowconfigure(1, weight=0)
textbox = customtkinter.CTkTextbox(root, spacing1=0, spacing2=0, spacing3=5)
textbox.grid(row=0, column=0, rowspan=4, padx=(20, 20), pady=(20, 20), sticky="nsew")
for i in range(1,8000):
textbox.insert("end",
"""Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.\n"""
* 1)
textbox.configure(state="disabled")
textbox.see("end")
progressbar = customtkinter.CTkProgressBar(root)
progressbar.grid(row=0, column=1, padx=20, pady=10)
progressbar.configure(mode="indeterminate")
progressbar.start()
root.mainloop()
some problem for me. After Inserting around 500 lines in a Textbox the Programm lags out..
Specs: i7-9700k 32gb Ram
I already noticed this, I will have a look at this problem.
by the way: great job, respect!
Tom Schimansky @.***> schrieb am Di. 10. Jän. 2023 um 12:00:
I already noticed this, I will have a look at this problem.
— Reply to this email directly, view it on GitHub https://github.com/TomSchimansky/CustomTkinter/issues/1020#issuecomment-1377080213, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOIOI6JHLLRJ5D6DHSAOJFDWRU6NTANCNFSM6AAAAAATVNGANE . You are receiving this because you authored the thread.Message ID: @.***>
@bountycortez For now, you can use the normal tkinter text widget with customization: https://github.com/TomSchimansky/CustomTkinter/issues/897
@bountycortez For now, you can use the normal tkinter text widget with customization: #897
youre a legend, thanks :)
thank you! very nice, was building the same solution (half way), perfect!
should be fixed now with version 5.0.5
can confirm, thank you very much.
Am 22.01.2023 um 22:01 schrieb Tom Schimansky @.***>:
should be fixed now with version 5.0.5
— Reply to this email directly, view it on GitHub https://github.com/TomSchimansky/CustomTkinter/issues/1020#issuecomment-1399606984, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOIOI6OFX7KMLB6HZAVYU3TWTWNZPANCNFSM6AAAAAATVNGANE. You are receiving this because you were mentioned.