#### PyKDE - Python Bindings for KDE

# class KFind |
Table of contents
Modules
tdeutils Classes
All Classes

Module | tdeutils
Class | KFind
Inherits | TQObject

### enums

- Result = {NoMatch, Match }

### methods

- KFind (pattern, options, parent)

  returns a KFind instance
  In versions KDE 3.3.0 and above only
  Argument | Type | Default
  --- | --- | ---
  pattern | TQString |
  options | long |
  parent | TQWidget |

- KFind (pattern, options, parent, findDialog)

  returns a KFind instance
  In versions KDE 3.3.0 and above only
  Argument | Type | Default
  --- | --- | ---
  pattern | TQString |
  options | long |
  parent | TQWidget |
  findDialog | TQWidget |

- closeFindNextDialog ()

  returns nothing
  In versions KDE 3.3.0 and above only

- dialogClosed ()

  returns nothing
  In versions KDE 3.3.0 and above only

- dialogsParent ()

  returns (TQWidget)
  In versions KDE 3.3.0 and above only

- displayFinalDialog ()

  returns nothing
  In versions KDE 3.3.0 and above only

- find ()

  returns (KFind.Result)
  In versions KDE 3.3.0 and above only

- find (text, pattern, index, options)

  returns (int) matchedlength (int)
  In versions KDE 3.3.0 and above only
  static
  Argument | Type | Default
  --- | --- | ---
  text | TQString |
  pattern | TQString |
  index | int |
  options | long |

- find (text, pattern, index, options)

  returns (int) matchedlength (int)
  In versions KDE 3.3.0 and above only
  static
  Argument | Type | Default
  --- | --- | ---
  text | TQString |
  pattern | TQRegExp |
  index | int |
  options | long |

- findNext ()

  returns nothing
  In versions KDE 3.3.0 and above only

- findNextDialog (create = 0)

  returns (KDialogBase)
  In versions KDE 3.3.0 and above only
  Argument | Type | Default
  --- | --- | ---
  create | bool | 0

- highlight (text, matchingIndex, matchedLength)

  returns nothing
  In versions KDE 3.3.0 and above only
  Argument | Type | Default
  --- | --- | ---
  text | TQString |
  matchingIndex | int |
  matchedLength | int |

- highlight (id, matchingIndex, matchedLength)

  returns nothing
  In versions KDE 3.3.0 and above only
  Argument | Type | Default
  --- | --- | ---
  id | int |
  matchingIndex | int |
  matchedLength | int |

- index ()

  returns (int)
  In versions KDE 3.3.0 and above only

- needData ()

  returns (bool)
  In versions KDE 3.3.0 and above only

- numMatches ()

  returns (int)
  In versions KDE 3.3.0 and above only

- options ()

  returns (long)
  In versions KDE 3.3.0 and above only

- optionsChanged ()

  returns nothing
  In versions KDE 3.3.0 and above only

- parentWidget ()

  returns (TQWidget)
  In versions KDE 3.3.0 and above only

- pattern ()

  returns (TQString)
  In versions KDE 3.3.0 and above only

- resetCounts ()

  returns nothing
  In versions KDE 3.3.0 and above only

- setData (data, startPos = -1)

  returns nothing
  In versions KDE 3.3.0 and above only
  Argument | Type | Default
  --- | --- | ---
  data | TQString |
  startPos | int | -1

- setData (id, data, startPos = -1)

  returns nothing
  In versions KDE 3.3.0 and above only
  Argument | Type | Default
  --- | --- | ---
  id | int |
  data | TQString |
  startPos | int | -1

- setOptions (options)

  returns nothing
  In versions KDE 3.3.0 and above only
  Argument | Type | Default
  --- | --- | ---
  options | long |

- setPattern (pattern)

  returns nothing
  In versions KDE 3.3.0 and above only
  Argument | Type | Default
  --- | --- | ---
  pattern | TQString |

- shouldRestart (forceAsking = 0, showNumMatches = 1)

  returns (bool)
  In versions KDE 3.3.0 and above only
  Argument | Type | Default
  --- | --- | ---
  forceAsking | bool | 0
  showNumMatches | bool | 1

- slotDialogClosed ()

  returns nothing
  In versions KDE 3.3.0 and above only

- slotFindNext ()

  returns nothing
  In versions KDE 3.3.0 and above only

- validateMatch (text, index, matchedlength)

  returns (bool)
  In versions KDE 3.3.0 and above only
  Argument | Type | Default
  --- | --- | ---
  text | TQString |
  index | int |
  matchedlength | int |