#### PyKDE - Python Bindings for KDE

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

Module | kutils
Class | KFind
Inherits | QObject

### 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 | QString |
  options | long |
  parent | QWidget |

- KFind (pattern, options, parent, findDialog)

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

- 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 (QWidget)
  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 | QString |
  pattern | QString |
  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 | QString |
  pattern | QRegExp |
  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 | QString |
  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 (QWidget)
  In versions KDE 3.3.0 and above only

- pattern ()

  returns (QString)
  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 | QString |
  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 | QString |
  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 | QString |

- 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 | QString |
  index | int |
  matchedlength | int |