EditWrapper
Wrap a windows Edit control
The EditWrapper class is accessible via the
pywinauto.controls.win32_controls
module.
Attributes
['Edit', 'TEdit', 'TMemo', 'WindowsForms\\d*\\.EDIT\\..*']
Methods
Return how many lines there are in the Edit
Return how many characters there are in the line
f
GetLine(self, line_index)
...
Return the line specified
Get the text of the edit control
Get the text of the edit control
The start and end indices of the current selection
Override SetWindowText for edit controls because it should not be
used for Edit controls.
Edit Controls should either use SetEditText() or TypeKeys() to modify
the contents of the edit control.
f
SetText(self, text, pos_start=None, pos_end=None)
...
Set the text of the edit control
f
SetEditText(self, text, pos_start=None, pos_end=None)
...
Set the text of the edit control
f
Select(self, start=0, end=None)
...
Set the edit selection of the edit control
Returns True if the handles of both controls are the same
See
the source
for more information.