#### PyKDE - Python Bindings for KDE

# class TDELockFile |
Table of contents
Modules
tdecore Classes
All Classes

Module | tdecore
Class | TDELockFile
Inherits | TDEShared

### enums

- LockOptions = {LockNoBlock, LockForce }
- LockResult = {LockOK, LockFail, LockError, LockStale }

### methods

- TDELockFile (file)

  returns a TDELockFile instance
  In versions KDE 3.3.0 and above only
  Argument | Type | Default
  --- | --- | ---
  file | TQString |

- getLockInfo ()

  returns (bool) pid (int) hostname (TQString) appname (TQString)
  In versions KDE 3.3.0 and above only

- isLocked ()

  returns (bool)
  In versions KDE 3.3.0 and above only

- lock (options = 0)

  returns (TDELockFile.LockResult)
  In versions KDE 3.3.0 and above only
  Argument | Type | Default
  --- | --- | ---
  options | int | 0

- setStaleTime (_staleTime)

  returns nothing
  In versions KDE 3.3.0 and above only
  Argument | Type | Default
  --- | --- | ---
  _staleTime | int |

- staleTime ()

  returns (int)
  In versions KDE 3.3.0 and above only

- unlock ()

  returns nothing
  In versions KDE 3.3.0 and above only