#### PyKDE - Python Bindings for KDE

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

Module | tdeutils
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 | TQString |
  replacement | TQString |
  options | long |
  parent | TQWidget | 0

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

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

- 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 | TQString |
  pattern | TQString |
  replacement | TQString |
  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 | TQString |
  pattern | TQRegExp |
  replacement | TQString |
  index | int |
  options | long |

- replace (text, replacementIndex, replacedLength, matchedLength)

  returns nothing
  In versions KDE 3.3.0 and above only
  Argument | Type | Default
  --- | --- | ---
  text | TQString |
  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