class KFileDialog

#### PyKDE - Python Bindings for KDE

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

Module | kfile
Class | KFileDialog
Inherits | KDialogBase

### enums

- OperationMode = {Other = 0, Opening, Saving }

### methods

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

  returns a KFileDialog instance
  Argument | Type | Default
  --- | --- | ---
  startDir | QString |
  filter | QString |
  parent | QWidget |
  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 | QString |
  filter | QString |
  parent | QWidget |
  name | char |
  modal | bool |
  widget | QWidget |

- KFileDialog (a0)

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

- accept ()

  returns nothing

- actionCollection ()

  returns (KActionCollection)

- addDirEntry (a0, a1)

  Not Implemented

- addToRecentDocuments ()

  returns nothing

- baseURL ()

  returns (KURL)

- cancelButton ()

  returns (KPushButton)

- clearFilter ()

  returns nothing

- currentFilter ()

  returns (QString)

- currentFilterExtension ()

  returns (QString)
  In versions KDE 3.2.0 and above only

- currentFilterMimeType ()

  returns (KMimeType.Ptr)

- currentMimeFilter ()

  returns (QString)

- dirCompletion (a0)

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

- enterURL (url)

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

- enterURL (url)

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

- fileCompletion (a0)

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

- fileHighlighted (a0)

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

- fileHighlighted (i)

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

- fileSelected (a0)

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

- fileSelected (i)

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

- filterChanged (filter)

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

- getCompleteURL (a0)

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

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

  returns (QString)
  static
  Argument | Type | Default
  --- | --- | ---
  startDir | QString | QString .null
  parent | QWidget | 0
  caption | QString | QString .null

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

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

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

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

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

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

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

  returns (QStringList)
  static
  Argument | Type | Default
  --- | --- | ---
  startDir | QString | QString .null
  filter | QString | QString .null
  parent | QWidget | 0
  caption | QString | QString .null

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

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

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

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

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

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

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

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

- getStartURL (startDir, recentDirClass)

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

- init (startDir, filter, widget)

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

- 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 | QKeyEvent |

- locationActivated (url)

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

- 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 | QString |

- pathComboIndex ()

  returns (int)
  In versions KDE 3.1.0 and above only

- readConfig (a0, group = QString .null)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  a0 | KConfig |
  group | QString | QString .null

- readRecentFiles (a0)

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

- saveRecentFiles (a0)

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

- selectedFile ()

  returns (QString)

- selectedFiles ()

  returns (QStringList)

- selectedURL ()

  returns (KURL)

- selectedURLs ()

  returns (KURL.List)

- selectionChanged ()

  returns nothing

- setFilter (filter)

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

- setFilterMimeType (label, types, defaultType)

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

- setKeepLocation (keep)

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

- setLocationLabel (text)

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

- setMimeFilter (types, defaultType = QString .null)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  types | QStringList |
  defaultType | QString | QString .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 | QWidget |

- setPreviewWidget (w)

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

- setSelection (name)

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

- 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 | KIO.Job |

- speedBar ()

  returns (KURLBar)
  In versions KDE 3.2.0 and above only

- 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 | QString |

- toolBar ()

  returns (KToolBar)

- 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 = QString .null)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  a0 | KConfig |
  group | QString | QString .null