You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Desktop (please complete the following information):
ttkbootstrap Version 1.10.1
Describe the bug
When press Ctrl+A on ScrolledText , the bug is below
File "d:\pyTest\urlchecker\env\Lib\site-packages\ttkbootstrap\window.py", line 109, in on_select_all
widget.select_range(0, END)
^^^^^^^^^^^^^^^^^^^
AttributeError: 'ScrolledText' object has no attribute 'select_range'
To Reproduce
press Ctrl+A on ScrolledText widget
Expected behavior
Maybe change:
if widget.class.name == "Text":
to:
if widget.class.name in ("Text",'ScrolledText'):
Screenshots
No response
Additional context
No response
The text was updated successfully, but these errors were encountered:
In this code command=textbox.yview is used to make scrollbar affect the Text widget. yscrollcommand=yscrollbar.set is used to make Text widget affect scrollbar, making the full connection.
(Now a bit off-topic, but as I have noticed, the issues with scrollbars is the common theme of ttkbootstrap)
Same simple solution could be used to fix TableView widget, which lacks the vertical scrollbar for some reason by the default, but you would have to use tableview.view.yview in command option to get the TreeView widget object inside of it.
Desktop (please complete the following information):
ttkbootstrap Version 1.10.1
Describe the bug
When press Ctrl+A on ScrolledText , the bug is below
File "d:\pyTest\urlchecker\env\Lib\site-packages\ttkbootstrap\window.py", line 109, in on_select_all
widget.select_range(0, END)
^^^^^^^^^^^^^^^^^^^
AttributeError: 'ScrolledText' object has no attribute 'select_range'
To Reproduce
press Ctrl+A on ScrolledText widget
Expected behavior
Maybe change:
if widget.class.name == "Text":
to:
if widget.class.name in ("Text",'ScrolledText'):
Screenshots
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: