#### PyKDE - Python Bindings for KDE

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

Module | kutils
Class | KReplace
Inherits | KFind

### methods

- KReplace (pattern, replacement, options, parent = 0)

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

- KReplace (pattern, replacement, options, parent, replaceDialog)

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

- closeReplaceNextDialog ()

  returns nothing
  In versions KDE 3.3.0 and above only

- displayFinalDialog ()

  returns nothing
  In versions KDE 3.3.0 and above only

- numReplacements ()

  returns (int)
  In versions KDE 3.3.0 and above only

- replace ()

  returns (Result)
  In versions KDE 3.3.0 and above only

- replace (text, pattern, replacement, index, options)

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

- replace (text, pattern, replacement, index, options)

  returns (int) replacedLength (int)
  In versions KDE 3.3.0 and above only
  static
  Argument | Type | Default
  --- | --- | ---
  text | QString |
  pattern | QRegExp |
  replacement | QString |
  index | int |
  options | long |

- replace (text, replacementIndex, replacedLength, matchedLength)

  returns nothing
  In versions KDE 3.3.0 and above only
  Argument | Type | Default
  --- | --- | ---
  text | QString |
  replacementIndex | int |
  replacedLength | int |
  matchedLength | int |

- replaceNextDialog (create = 0)

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

- resetCounts ()

  returns nothing
  In versions KDE 3.3.0 and above only

- 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

- slotReplace ()

  returns nothing
  In versions KDE 3.3.0 and above only

- slotReplaceAll ()

  returns nothing
  In versions KDE 3.3.0 and above only

- slotSkip ()

  returns nothing
  In versions KDE 3.3.0 and above only