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
I have searched the issue tracker for open issues that relate to the same feature, before opening a new one.
This issue only relates to a single feature. I will open new issues for any other features.
Is your feature request related to a problem?
A method that will insert text at current caret position to an Entry widget. If some text is selected, it will replace it.
Is it possible to construct a solution with the existing API?
Yes, but it's complicated: you must get the current text, get the caret position (col,row) and convert this to a position in the text stream (no simple method to do this, especialy in multiline Entry), insert the text, then set the text.
Describe the solution you'd like to see.
widget.Entry.InsertText(text string)
The text was updated successfully, but these errors were encountered:
Checklist
Is your feature request related to a problem?
A method that will insert text at current caret position to an Entry widget. If some text is selected, it will replace it.
Is it possible to construct a solution with the existing API?
Yes, but it's complicated: you must get the current text, get the caret position (col,row) and convert this to a position in the text stream (no simple method to do this, especialy in multiline Entry), insert the text, then set the text.
Describe the solution you'd like to see.
widget.Entry.InsertText(text string)
The text was updated successfully, but these errors were encountered: