pyWinAuto: pywinauto.controls.win32_controls.EditWrapper -- Wrap a windows Edit control

EditWrapper

Wrap a windows Edit control


Attributes

a handle

None

a windowclasses

['Edit', 'TEdit', 'TMemo', 'WindowsForms\\d*\\.EDIT\\..*']

Methods

f __init__(self, hwnd) ...

Initialize the control

f LineCount(self) ...

Return how many lines there are in the Edit

f LineLength(self, line_index) ...

Return how many characters there are in the line

f GetLine(self, line_index) ...

Return the line specified

f Texts(self) ...

Get the text of the edit control

f TextBlock(self) ...

Get the text of the edit control

f SelectionIndices(self) ...

The start and end indices of the current selection

f SetWindowText(self, text, append=False) ...

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

f __eq__(self, other) ...

Returns True if the handles of both controls are the same

See the source for more information.