Skip to content

widget.Entry.InsertText #3445

Open
Open
@matwachich

Description

@matwachich

Checklist

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

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions