Disable ScrolledText after creation #201
-
Hello st = ScrolledText(root, padding=5, height=15, autohide=True)
st.configure(state="disabled") Above code gives me the following error:
Thank you |
Beta Was this translation helpful? Give feedback.
Answered by
israel-dryer
Feb 10, 2022
Replies: 1 comment 1 reply
-
I think I should probably override the configure method to route certain configurations to the internal text widget. However, for now, you can access the internal text widget as below and this should do what you need. I'll add this to the list of improvements to make on the next release. st._text.configure(state='disabled') |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
impubes
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think I should probably override the configure method to route certain configurations to the internal text widget.
However, for now, you can access the internal text widget as below and this should do what you need. I'll add this to the list of improvements to make on the next release.