Replies: 2 comments
-
Hello! import ttkbootstrap as ttk
from ttkbootstrap.scrolled import ScrolledText
#void
def select_all():
text.tag_add("sel", "1.0", "end")
root = ttk.Window()
root.geometry("500x500")
text = ScrolledText(root)
text.pack(fill=ttk.BOTH, expand=ttk.YES)
text.bind("<Control-a>",select_all)
root.mainloop() |
Beta Was this translation helpful? Give feedback.
0 replies
-
If it has wrong too. try:
widget.select_range(0, END)
widget.icursor(END)
except:pass |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I noticed that I get an error when I press CTRL + A in ScrolledText in ttkbootstrap, I have created two minimal snippets here.
No error:
Error, when pressing “CTRL + A”:
Since no one has encountered this problem, I think it's probably me. So, what am I doing wrong?
I'm on Windows 10 using 3.11 Python.
(facepalm)
I didn't see this page... it works now!
https://ttkbootstrap.readthedocs.io/en/latest/api/scrolled/scrolledtext/
Beta Was this translation helpful? Give feedback.
All reactions