CustomTkinter icon indicating copy to clipboard operation
CustomTkinter copied to clipboard

GUI almost not updating and becoming almost unresponsive with a lot of input in (a readonly) CTkTextbox

Open bountycortez opened this issue 3 years ago • 6 comments

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()

textbox_with_a_lot_of_input.py.txt

bountycortez avatar Jan 09 '23 13:01 bountycortez

some problem for me. After Inserting around 500 lines in a Textbox the Programm lags out..

Specs: i7-9700k 32gb Ram

svn-josh avatar Jan 10 '23 09:01 svn-josh

I already noticed this, I will have a look at this problem.

TomSchimansky avatar Jan 10 '23 11:01 TomSchimansky

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 avatar Jan 10 '23 11:01 bountycortez

@bountycortez For now, you can use the normal tkinter text widget with customization: https://github.com/TomSchimansky/CustomTkinter/issues/897

Akascape avatar Jan 10 '23 12:01 Akascape

@bountycortez For now, you can use the normal tkinter text widget with customization: #897

youre a legend, thanks :)

svn-josh avatar Jan 10 '23 12:01 svn-josh

thank you! very nice, was building the same solution (half way), perfect!

bountycortez avatar Jan 10 '23 15:01 bountycortez

should be fixed now with version 5.0.5

TomSchimansky avatar Jan 22 '23 21:01 TomSchimansky

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.

bountycortez avatar Jan 23 '23 15:01 bountycortez