#### PyKDE - Python Bindings for KDE

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

Module | tdecore
Class | TDEApplication
Inherits | TQApplication, TDEInstance

### enums

- (anonymous) = {ShiftModifier, LockModifier, ControlModifier, Modifier1, Modifier2, Modifier3, Modifier4, Modifier5 }
- (anonymous) = {Button1Pressed, Button2Pressed, Button3Pressed, Button4Pressed, Button5Pressed }
- CaptionLayout = {CaptionAppLast, CaptionAppFirst, CaptionNoApp }
- SettingsCategory = {SETTINGS_MOUSE, SETTINGS_COMPLETION, SETTINGS_PATHS, SETTINGS_POPUPMENU, SETTINGS_QT, SETTINGS_SHORTCUTS }
- ShutdownConfirm = {ShutdownConfirmDefault, ShutdownConfirmNo, ShutdownConfirmYes }
- ShutdownMode = {ShutdownModeDefault, ShutdownModeSchedule, ShutdownModeTryNow, ShutdownModeForceNow, ShutdownModeInteractive }
- ShutdownType = {ShutdownTypeDefault, ShutdownTypeNone, ShutdownTypeReboot, ShutdownTypeHalt }

### methods

- TDEApplication (allowStyles = 1, GUIenabled = 1)

  returns a TDEApplication instance
  Argument | Type | Default
  --- | --- | ---
  allowStyles | bool | 1
  GUIenabled | bool | 1

- TDEApplication (display, visual = 0, colormap = 0, allowStyles = 1)

  Not Implemented

- TDEApplication (display, rAppName, allowStyles = 1, GUIenabled = 1)

  Not Implemented

- TDEApplication (argv, rAppName, allowStyles = 1, GUIenabled = 1)

  returns a TDEApplication instance
  Argument | Type | Default
  --- | --- | ---
  argv | a Python list of strings |
  rAppName | Python string |
  allowStyles | bool | 1
  GUIenabled | bool | 1

- TDEApplication (allowStyles, GUIenabled, _instance)

  returns a TDEApplication instance
  Argument | Type | Default
  --- | --- | ---
  allowStyles | bool |
  GUIenabled | bool |
  _instance | TDEInstance |

- TDEApplication (display, visual, colormap, allowStyles, _instance)

  Not Implemented

- TDEApplication (a0)

  returns a TDEApplication instance
  Argument | Type | Default
  --- | --- | ---
  a0 | TDEApplication |

- addCmdLineOptions ()

  returns nothing
  static

- addKipcEventMask (id)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  id | int |

- allowURLAction (action, _baseURL, _destURL)

  returns nothing
  In versions KDE 3.2.0 and above only
  Argument | Type | Default
  --- | --- | ---
  action | TQString |
  _baseURL | KURL |
  _destURL | KURL |

- appearanceChanged ()

  returns nothing

- authorize (genericAction)

  returns (bool)
  Argument | Type | Default
  --- | --- | ---
  genericAction | TQString |

- authorizeControlModule (menuId)

  returns (bool)
  In versions KDE 3.2.0 and above only
  Argument | Type | Default
  --- | --- | ---
  menuId | TQString |

- authorizeControlModules (menuIds)

  returns (TQStringList)
  In versions KDE 3.2.0 and above only
  Argument | Type | Default
  --- | --- | ---
  menuIds | TQStringList |

- authorizeTDEAction (action)

  returns (bool)
  Argument | Type | Default
  --- | --- | ---
  action | char |

- authorizeURLAction (action, baseURL, destURL)

  returns (bool)
  In versions KDE 3.1.0 and above only
  Argument | Type | Default
  --- | --- | ---
  action | TQString |
  baseURL | KURL |
  destURL | KURL |

- backgroundChanged (desk)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  desk | int |

- caption ()

  returns (TQString)

- checkRecoverFile (pFilename)

  returns (TQString) bRecover (bool)
  Argument | Type | Default
  --- | --- | ---
  pFilename | TQString |

- clear ()

  returns nothing
  In versions KDE 3.2.0 and above only

- commitData (sm)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  sm | TQSessionManager |

- copy ()

  returns nothing
  In versions KDE 3.2.0 and above only

- createApplicationPalette ()

  returns (TQPalette)
  In versions KDE 3.1.0 and above only
  static

- createApplicationPalette (config, contrast)

  returns (TQPalette)
  In versions KDE 3.1.0 and above only
  static
  Argument | Type | Default
  --- | --- | ---
  config | TDEConfig |
  contrast | int |

- cut ()

  returns nothing
  In versions KDE 3.2.0 and above only

- dcopClient ()

  returns (DCOPClient)
  static

- deref ()

  returns nothing

- disableAutoDcopRegistration ()

  returns nothing
  static

- disableSessionManagement ()

  returns nothing

- disableStyles ()

  returns nothing

- enableSessionManagement ()

  returns nothing
  In versions KDE 3.2.0 and above only

- enableStyles ()

  returns nothing

- geometryArgument ()

  returns (TQString)

- getDisplay ()

  returns (Display)

- guiEnabled ()

  returns (bool)
  In versions KDE 3.2.0 and above only
  static

- iceIOErrorHandler (conn)

  Not Implemented

- icon ()

  returns (TQPixmap)

- iconChanged (group)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  group | int |

- iconName ()

  returns (TQString)

- installKDEPropertyMap ()

  returns nothing

- installSigpipeHandler ()

  returns nothing
  In versions KDE 3.2.0 and above only
  static

- installX11EventFilter (filter)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  filter | TQWidget |

- invokeBrowser (url, startup_id)

  returns nothing
  In versions KDE 3.2.0 and above only
  Argument | Type | Default
  --- | --- | ---
  url | TQString |
  startup_id | TQCString |

- invokeBrowser (url)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  url | TQString |

- invokeEditSlot (slot)

  returns nothing
  In versions KDE 3.2.0 and above only
  Argument | Type | Default
  --- | --- | ---
  slot | char |

- invokeHTMLHelp (aFilename, aTopic = TQString .null)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  aFilename | TQString |
  aTopic | TQString | TQString .null

- invokeHelp (anchor, appname, startup_id)

  returns nothing
  In versions KDE 3.2.0 and above only
  Argument | Type | Default
  --- | --- | ---
  anchor | TQString |
  appname | TQString |
  startup_id | TQCString |

- invokeHelp (anchor = TQString .null, appname = TQString .null)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  anchor | TQString | TQString .null
  appname | TQString | TQString .null

- invokeMailer (address, subject, startup_id)

  returns nothing
  In versions KDE 3.2.0 and above only
  Argument | Type | Default
  --- | --- | ---
  address | TQString |
  subject | TQString |
  startup_id | TQCString |

- invokeMailer (address, subject)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  address | TQString |
  subject | TQString |

- invokeMailer (mailtoURL, startup_id, allowAttachments)

  returns nothing
  In versions KDE 3.3.0 and above only
  Argument | Type | Default
  --- | --- | ---
  mailtoURL | KURL |
  startup_id | TQCString |
  allowAttachments | bool |

- invokeMailer (mailtoURL, startup_id)

  returns nothing
  In versions KDE 3.2.0 and above only
  Argument | Type | Default
  --- | --- | ---
  mailtoURL | KURL |
  startup_id | TQCString |

- invokeMailer (mailtoURL)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  mailtoURL | KURL |

- invokeMailer (to, cc, bcc, subject, body, messageFile, attachURLs, startup_id)

  returns nothing
  In versions KDE 3.2.0 and above only
  Argument | Type | Default
  --- | --- | ---
  to | TQString |
  cc | TQString |
  bcc | TQString |
  subject | TQString |
  body | TQString |
  messageFile | TQString |
  attachURLs | TQStringList |
  startup_id | TQCString |

- invokeMailer (to, cc, bcc, subject, body, messageFile = TQString .null, attachURLs = TQStringList ())

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  to | TQString |
  cc | TQString |
  bcc | TQString |
  subject | TQString |
  body | TQString |
  messageFile | TQString | TQString .null
  attachURLs | TQStringList | TQStringList ()

- isRestored ()

  returns (bool)

- kApplication ()

  returns (TDEApplication)
  static

- tdeinitExec (name, args, startup_id)

  returns (int) error (TQString) pid (int)
  In versions KDE 3.2.0 and above only
  static
  Argument | Type | Default
  --- | --- | ---
  name | TQString |
  args | TQStringList |
  startup_id | TQCString |

- tdeinitExec (name, args)

  returns (int) error (TQString) pid (int)
  static
  Argument | Type | Default
  --- | --- | ---
  name | TQString |
  args | TQStringList |

- tdeinitExecWait (name, args, startup_id)

  returns (int) error (TQString) pid (int)
  In versions KDE 3.2.0 and above only
  static
  Argument | Type | Default
  --- | --- | ---
  name | TQString |
  args | TQStringList |
  startup_id | TQCString |

- tdeinitExecWait (name, args)

  returns (int) error (TQString) pid (int)
  static
  Argument | Type | Default
  --- | --- | ---
  name | TQString |
  args | TQStringList |

- tdedisplayFontChanged ()

  returns nothing

- tdedisplayPaletteChanged ()

  returns nothing

- tdedisplayStyleChanged ()

  returns nothing

- keyboardModifiers ()

  returns (uint)
  In versions KDE 3.1.0 and above only
  static

- keyboardMouseState ()

  returns (ButtonState)
  In versions KDE 3.4.0 and above only
  static

- kipcMessage (id, data)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  id | int |
  data | int |

- kstyle ()

  Not Implemented

- launcher ()

  returns (TQCString)
  static

- makeStdCaption (userCaption, withAppName = 1, modified = 0)

  returns (TQString)
  Argument | Type | Default
  --- | --- | ---
  userCaption | TQString |
  withAppName | bool | 1
  modified | bool | 0

- miniIcon ()

  returns (TQPixmap)

- miniIconName ()

  returns (TQString)

- mouseState ()

  returns (uint)
  In versions KDE 3.1.0 and above only
  static

- notify (receiver, event)

  returns (bool)
  Argument | Type | Default
  --- | --- | ---
  receiver | TQObject |
  event | TQEvent |

- paste ()

  returns nothing
  In versions KDE 3.2.0 and above only

- propagateSessionManager ()

  returns nothing

- random ()

  returns (int)
  static

- randomString (length)

  returns (TQString)
  static
  Argument | Type | Default
  --- | --- | ---
  length | int |

- ref ()

  returns nothing

- removeKipcEventMask (id)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  id | int |

- removeX11EventFilter (filter)

  returns nothing
  In versions KDE 3.2.0 and above only
  Argument | Type | Default
  --- | --- | ---
  filter | TQWidget |

- requestShutDown (confirm = ShutdownConfirmDefault, sdtype = ShutdownTypeDefault, sdmode = ShutdownModeDefault)

  returns (bool)
  Argument | Type | Default
  --- | --- | ---
  confirm | TDEApplication.ShutdownConfirm | ShutdownConfirmDefault
  sdtype | TDEApplication.ShutdownType | ShutdownTypeDefault
  sdmode | TDEApplication.ShutdownMode | ShutdownModeDefault

- saveState (sm)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  sm | TQSessionManager |

- saveYourself ()

  returns nothing

- selectAll ()

  returns nothing
  In versions KDE 3.2.0 and above only

- sessionConfig ()

  returns (TDEConfig)

- sessionSaving ()

  returns (bool)
  In versions KDE 3.1.1 and above only

- setStartupId (startup_id)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  startup_id | TQCString |

- setTopWidget (topWidget)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  topWidget | TQWidget |

- settingsChanged (category)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  category | int |

- shutDown ()

  returns nothing

- startKdeinit ()

  returns nothing
  static

- startServiceByDesktopName (_name, URL, startup_id = TQCString ("" ), noWait = 0)

  returns (int) error (TQString) dcopService (TQCString) pid (int)
  static
  Argument | Type | Default
  --- | --- | ---
  _name | TQString |
  URL | TQString |
  startup_id | TQCString | TQCString ("" )
  noWait | bool | 0

- startServiceByDesktopName (_name, URLs, startup_id = TQCString ("" ), noWait = 0)

  returns (int) error (TQString) dcopService (TQCString) pid (int)
  static
  Argument | Type | Default
  --- | --- | ---
  _name | TQString |
  URLs | TQStringList |
  startup_id | TQCString | TQCString ("" )
  noWait | bool | 0

- startServiceByDesktopPath (_name, URL, startup_id = TQCString ("" ), noWait = 0)

  returns (int) error (TQString) dcopService (TQCString) pid (int)
  static
  Argument | Type | Default
  --- | --- | ---
  _name | TQString |
  URL | TQString |
  startup_id | TQCString | TQCString ("" )
  noWait | bool | 0

- startServiceByDesktopPath (_name, URLs, startup_id = TQCString ("" ), noWait = 0)

  returns (int) error (TQString) dcopService (TQCString) pid (int)
  static
  Argument | Type | Default
  --- | --- | ---
  _name | TQString |
  URLs | TQStringList |
  startup_id | TQCString | TQCString ("" )
  noWait | bool | 0

- startServiceByName (_name, URL, startup_id = TQCString ("" ), noWait = 0)

  returns (int) error (TQString) dcopService (TQCString) pid (int)
  static
  Argument | Type | Default
  --- | --- | ---
  _name | TQString |
  URL | TQString |
  startup_id | TQCString | TQCString ("" )
  noWait | bool | 0

- startServiceByName (_name, URLs, startup_id = TQCString ("" ), noWait = 0)

  returns (int) error (TQString) dcopService (TQCString) pid (int)
  static
  Argument | Type | Default
  --- | --- | ---
  _name | TQString |
  URLs | TQStringList |
  startup_id | TQCString | TQCString ("" )
  noWait | bool | 0

- startupId ()

  returns (TQCString)

- tempSaveName (pFilename)

  returns (TQString)
  Argument | Type | Default
  --- | --- | ---
  pFilename | TQString |

- toolbarAppearanceChanged (a0)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  a0 | int |

- updateRemoteUserTimestamp (dcopId, time = 0)

  returns nothing
  In versions KDE 3.3.0 and above only
  Argument | Type | Default
  --- | --- | ---
  dcopId | TQCString |
  time | ulong | 0

- updateUserTimestamp (time = 0)

  returns nothing
  In versions KDE 3.2.0 and above only
  Argument | Type | Default
  --- | --- | ---
  time | ulong | 0

- userTimestamp ()

  returns (ulong)
  In versions KDE 3.2.3 and above only

- x11EventFilter (a0)

  Not Implemented

- xErrhandler (a0, a1)

  Not Implemented

- xioErrhandler (a0)

  Not Implemented

- xioErrhandler ()

  returns (int)
  In versions less than KDE 3.2.0 only

### variables

- variables

  Variable | Type
  --- | ---
  loadedByKdeinit | bool