XmTextField widget methods -- X Python Reference Manual

Next: XmToggleButton widget methods Prev: XmText widget methods Up: Xm Widget object Top: Top

## 5.3.17. XmTextField widget methods

Widget objects whose widget class is subclassed from XmTextField have the following additional methods:

TextFieldClearSelection (time)
  Returns `None`. This function corresponds with `XmTextFieldClearSelection`.

TextFieldCopy (time)
  Returns `None`. This function corresponds with `XmTextFieldCopy`.

TextFieldCut (time)
  Returns `None`. This function corresponds with `XmTextFieldCut`.

TextFieldGetBaseline ()
  Returns `baseline`. This function corresponds with `XmTextFieldGetBaseline`.

TextFieldGetEditable ()
  Returns `state`. This function corresponds with `XmTextFieldGetEditable`.

TextFieldGetInsertionPosition ()
  Returns `position`. This function corresponds with `XmTextFieldGetInsertionPosition`.

TextFieldGetLastPosition ()
  Returns `position`. This function corresponds with `XmTextFieldGetLastPosition`.

TextFieldGetMaxLength ()
  Returns `length`. This function corresponds with `XmTextFieldGetMaxLength`.

TextFieldGetSelection ()
  Returns `text`. This function corresponds with `XmTextFieldGetSelection`.

TextFieldGetSelectionPosition ()
  Returns `(owner, left, right)`. This function corresponds with `XmTextFieldGetSelectionPosition`.

TextFieldGetString ()
  Returns `text`. This function corresponds with `XmTextFieldGetString`.

TextFieldInsert (position, value)
  Returns `None`. This function corresponds with `XmTextFieldInsert`.

TextFieldPaste ()
  Returns `is_owner`. This function corresponds with `XmTextFieldPaste`.

TextFieldPosToXY (position)
  Returns `(x, y)` or `None`. This function corresponds with `XmTextFieldPosToXY`.

TextFieldRemove ()
  Returns `success`. This function corresponds with `XmTextFieldRemove`.

TextFieldReplace (from_pos, to_pos, value)
  Returns `None`. This function corresponds with `XmTextFieldReplace`.

TextFieldSetAddMode (state)
  Returns `None`. This function corresponds with `XmTextFieldSetAddMode`.

TextFieldSetEditable (editable)
  Returns `None`. This function corresponds with `XmTextFieldSetEditable`.

TextFieldSetHighlight (left, right, mode)
  Returns `None`. This function corresponds with `XmTextFieldSetHighlight`.

TextFieldSetInsertionPosition (position)
  Returns `None`. This function corresponds with `XmTextFieldSetInsertionPosition`.

TextFieldSetMaxLength (max_length)
  Returns `None`. This function corresponds with `XmTextFieldSetMaxLength`.

TextFieldSetSelection (first, last, time)
  Returns `None`. This function corresponds with `XmTextFieldSetSelection`.

TextFieldSetString (value)
  Returns `None`. This function corresponds with `XmTextFieldSetString`.

TextFieldShowPosition (position)
  Returns `None`. This function corresponds with `XmTextFieldShowPosition`.

TextFieldXYToPos (x, y)
  Returns `None`. This function corresponds with `XmTextFieldXYToPos`.

Next: XmToggleButton widget methods Prev: XmText widget methods Up: Xm Widget object Top: Top