class KFileDialog

#### PyKDE - Python Bindings for KDE

# class KFileDialog |
Table of contents
Modules
tdefile Classes
All Classes

Module | tdefile
Class | KFileDialog
Inherits | KDialogBase

### enums

- OperationMode = {Other, Opening, Saving }

### methods

- KFileDialog (startDir, filter, parent, name, modal)

  returns a KFileDialog instance
  Argument | Type | Default
  --- | --- | ---
  startDir | TQString |
  filter | TQString |
  parent | TQWidget |
  name | char |
  modal | bool |

- KFileDialog (startDir, filter, parent, name, modal, widget)

  returns a KFileDialog instance
  In versions KDE 3.1.0 and above only
  Argument | Type | Default
  --- | --- | ---
  startDir | TQString |
  filter | TQString |
  parent | TQWidget |
  name | char |
  modal | bool |
  widget | TQWidget |

- KFileDialog (a0)

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

- accept ()

  returns nothing

- actionCollection ()

  returns (TDEActionCollection)

- addDirEntry (a0, a1)

  Not Implemented

- addToRecentDocuments ()

  returns nothing

- baseURL ()

  returns (KURL)

- cancelButton ()

  returns (KPushButton)

- clearFilter ()

  returns nothing

- currentFilter ()

  returns (TQString)

- currentFilterExtension ()

  returns (TQString)
  In versions KDE 3.2.0 and above only

- currentFilterMimeType ()

  returns (KMimeType.Ptr)

- currentMimeFilter ()

  returns (TQString)

- dirCompletion (a0)

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

- enterURL (url)

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

- enterURL (url)

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

- fileCompletion (a0)

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

- fileHighlighted (a0)

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

- fileHighlighted (i)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  i | KFileItem |

- fileSelected (a0)

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

- fileSelected (i)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  i | KFileItem |

- filterChanged (filter)

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

- getCompleteURL (a0)

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

- getExistingDirectory (startDir = TQString .null, parent = 0, caption = TQString .null)

  returns (TQString)
  static
  Argument | Type | Default
  --- | --- | ---
  startDir | TQString | TQString .null
  parent | TQWidget | 0
  caption | TQString | TQString .null

- getExistingURL (startDir = TQString .null, parent = 0, caption = TQString .null)

  returns (KURL)
  In versions KDE 3.1.0 and above only
  static
  Argument | Type | Default
  --- | --- | ---
  startDir | TQString | TQString .null
  parent | TQWidget | 0
  caption | TQString | TQString .null

- getImageOpenURL (startDir = TQString .null, parent = 0, caption = TQString .null)

  returns (KURL)
  static
  Argument | Type | Default
  --- | --- | ---
  startDir | TQString | TQString .null
  parent | TQWidget | 0
  caption | TQString | TQString .null

- getOpenFileName (startDir = TQString .null, filter = TQString .null, parent = 0, caption = TQString .null)

  returns (TQString)
  static
  Argument | Type | Default
  --- | --- | ---
  startDir | TQString | TQString .null
  filter | TQString | TQString .null
  parent | TQWidget | 0
  caption | TQString | TQString .null

- getOpenFileNameWId (startDir, filter, parent_id, caption)

  returns (TQString)
  In versions KDE 3.4.0 and above only
  static
  Argument | Type | Default
  --- | --- | ---
  startDir | TQString |
  filter | TQString |
  parent_id | WId |
  caption | TQString |

- getOpenFileNames (startDir = TQString .null, filter = TQString .null, parent = 0, caption = TQString .null)

  returns (TQStringList)
  static
  Argument | Type | Default
  --- | --- | ---
  startDir | TQString | TQString .null
  filter | TQString | TQString .null
  parent | TQWidget | 0
  caption | TQString | TQString .null

- getOpenURL (startDir = TQString .null, filter = TQString .null, parent = 0, caption = TQString .null)

  returns (KURL)
  static
  Argument | Type | Default
  --- | --- | ---
  startDir | TQString | TQString .null
  filter | TQString | TQString .null
  parent | TQWidget | 0
  caption | TQString | TQString .null

- getOpenURLs (startDir = TQString .null, filter = TQString .null, parent = 0, caption = TQString .null)

  returns (KURL.List)
  static
  Argument | Type | Default
  --- | --- | ---
  startDir | TQString | TQString .null
  filter | TQString | TQString .null
  parent | TQWidget | 0
  caption | TQString | TQString .null

- getSaveFileName (startDir = TQString .null, filter = TQString .null, parent = 0, caption = TQString .null)

  returns (TQString)
  static
  Argument | Type | Default
  --- | --- | ---
  startDir | TQString | TQString .null
  filter | TQString | TQString .null
  parent | TQWidget | 0
  caption | TQString | TQString .null

- getSaveFileNameWId (dir, filter, parent_id, caption)

  returns (TQString)
  In versions KDE 3.4.0 and above only
  static
  Argument | Type | Default
  --- | --- | ---
  dir | TQString |
  filter | TQString |
  parent_id | WId |
  caption | TQString |

- getSaveURL (startDir = TQString .null, filter = TQString .null, parent = 0, caption = TQString .null)

  returns (KURL)
  static
  Argument | Type | Default
  --- | --- | ---
  startDir | TQString | TQString .null
  filter | TQString | TQString .null
  parent | TQWidget | 0
  caption | TQString | TQString .null

- getStartURL (startDir, recentDirClass)

  returns (KURL)
  In versions KDE 3.1.0 and above only
  static
  Argument | Type | Default
  --- | --- | ---
  startDir | TQString |
  recentDirClass | TQString |

- init (startDir, filter, widget)

  returns nothing
  In versions KDE 3.1.0 and above only
  Argument | Type | Default
  --- | --- | ---
  startDir | TQString |
  filter | TQString |
  widget | TQWidget |

- initGUI ()

  returns nothing

- initSpeedbar ()

  returns nothing
  In versions KDE 3.1.0 and above only

- keepsLocation ()

  returns (bool)

- keyPressEvent (e)

  returns nothing
  In versions KDE 3.2.0 and above only
  Argument | Type | Default
  --- | --- | ---
  e | TQKeyEvent |

- locationActivated (url)

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

- mode ()

  returns (KFile.Mode)

- multiSelectionChanged ()

  returns nothing

- okButton ()

  returns (KPushButton)

- operationMode ()

  returns (KFileDialog.OperationMode)

- parseSelectedURLs ()

  returns (KURL.List)

- pathComboChanged (a0)

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

- pathComboIndex ()

  returns (int)
  In versions KDE 3.1.0 and above only

- readConfig (a0, group = TQString .null)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  a0 | TDEConfig |
  group | TQString | TQString .null

- readRecentFiles (a0)

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

- saveRecentFiles (a0)

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

- selectedFile ()

  returns (TQString)

- selectedFiles ()

  returns (TQStringList)

- selectedURL ()

  returns (KURL)

- selectedURLs ()

  returns (KURL.List)

- selectionChanged ()

  returns nothing

- setFilter (filter)

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

- setFilterMimeType (label, types, defaultType)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  label | TQString |
  types | KMimeType.List |
  defaultType | KMimeType.Ptr |

- setKeepLocation (keep)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  keep | bool |

- setLocationLabel (text)

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

- setMimeFilter (types, defaultType = TQString .null)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  types | TQStringList |
  defaultType | TQString | TQString .null

- setMode (m)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  m | KFile.Mode |

- setMode (m)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  m | uint |

- setOperationMode (a0)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  a0 | KFileDialog.OperationMode |

- setPreviewWidget (w)

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

- setPreviewWidget (w)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  w | KPreviewWidgetBase |

- setSelection (name)

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

- setStartDir (directory)

  returns nothing
  In versions KDE 3.2.0 and above only
  static
  Argument | Type | Default
  --- | --- | ---
  directory | KURL |

- setURL (url, clearforward = 1)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  url | KURL |
  clearforward | bool | 1

- show ()

  returns nothing

- slotAutoSelectExtClicked ()

  returns nothing
  In versions KDE 3.2.0 and above only

- slotCancel ()

  returns nothing

- slotFilterChanged ()

  returns nothing

- slotLoadingFinished ()

  returns nothing

- slotOk ()

  returns nothing

- slotStatResult (job)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  job | _TDEIO.Job |

- speedBar ()

  returns (KURLBar)
  In versions KDE 3.2.0 and above only

- toggleBookmarks (show)

  returns nothing
  In versions KDE 3.4.0 and above only
  Argument | Type | Default
  --- | --- | ---
  show | bool |

- toggleSpeedbar (a0)

  returns nothing
  In versions KDE 3.1.0 and above only
  Argument | Type | Default
  --- | --- | ---
  a0 | bool |

- tokenize (line)

  returns (KURL.List)
  Argument | Type | Default
  --- | --- | ---
  line | TQString |

- toolBar ()

  returns (TDEToolBar)

- toolbarCallback (a0)

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

- updateAutoSelectExtension ()

  returns nothing
  In versions KDE 3.2.0 and above only

- updateStatusLine (dirs, files)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  dirs | int |
  files | int |

- urlEntered (a0)

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

- writeConfig (a0, group = TQString .null)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  a0 | TDEConfig |
  group | TQString | TQString .null