#### PyKDE - Python Bindings for KDE

# class KDirOperator

Table of contents
Modules
kfile Classes
All Classes

Module | kfile
Class | KDirOperator
Inherits | QWidget

### enums

- ActionTypes = {SortActions = 1, ViewActions = 2, NavActions = 4, FileActions = 8, AllActions = 15 }

### methods

- KDirOperator (urlName = KURL (), parent = 0, name = 0)

  returns a KDirOperator instance

  Argument | Type | Default
  --- | --- | ---
  urlName | KURL | KURL ()
  parent | QWidget | 0
  name | char | 0

- actionCollection ()

  returns (KActionCollection)

- activatedMenu (a0, pos)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  a0 | KFileItem |
  pos | QPoint |

- back ()

  returns nothing

- cdUp ()

  returns nothing

- checkPreviewSupport ()

  returns (bool)

- clearFilter ()

  returns nothing
  In versions KDE 3.1.2 and above only

- clearHistory ()

  returns nothing

- close ()

  returns nothing

- completion (a0)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  a0 | QString |

- completionObject ()

  returns (KCompletion)

- createView (parent, view)

  returns (KFileView)

  Argument | Type | Default
  --- | --- | ---
  parent | QWidget |
  view | KFile.FileView |

- del_ (items, ask = 1, showProgress = 1)

  returns (KIO.DeleteJob)
  Renamed: was ' del ' in C++

  Argument | Type | Default
  --- | --- | ---
  items | KFileItemList |
  ask | bool | 1
  showProgress | bool | 1

- del_ (items, parent, ask = 1, showProgress = 1)

  returns (KIO.DeleteJob)
  Renamed: was ' del' in C++
  In versions KDE 3.0.3 and above only

  Argument | Type | Default
  --- | --- | ---
  items | KFileItemList |
  parent | QWidget |
  ask | bool | 1
  showProgress | bool | 1

- deleteSelected ()

  returns nothing

- dirActivated (item)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  item | KFileItem |

- dirCompletionObject ()

  returns (KCompletion)

- dirHighlighting ()

  returns (bool)

- dirLister ()

  returns (KDirLister)

- dirOnlyMode ()

  returns (bool)

- dirOnlyMode (mode)

  returns (bool)
  static

  Argument | Type | Default
  --- | --- | ---
  mode | uint |

- dropped (item, event, urls)

  returns nothing
  In versions KDE 3.2.0 and above only

  Argument | Type | Default
  --- | --- | ---
  item | KFileItem |
  event | QDropEvent |
  urls | KURL.List |

- fileHighlighted (item)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  item | KFileItem |

- fileSelected (item)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  item | KFileItem |

- finishedLoading ()

  returns nothing

- forward ()

  returns nothing

- highlightFile (i)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  i | KFileItem |

- home ()

  returns nothing

- insertNewFiles (newone)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  newone | KFileItemList |

- isRoot ()

  returns (bool)

- isSelected (item)

  returns (bool)

  Argument | Type | Default
  --- | --- | ---
  item | KFileItem |

- itemDeleted (a0)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  a0 | KFileItem |

- makeCompletion (a0)

  returns (QString)

  Argument | Type | Default
  --- | --- | ---
  a0 | QString |

- makeDirCompletion (a0)

  returns (QString)

  Argument | Type | Default
  --- | --- | ---
  a0 | QString |

- mimeFilter ()

  returns (QStringList)
  In versions KDE 3.1.2 and above only

- mkdir (directory, enterDirectory = 1)

  returns (bool)

  Argument | Type | Default
  --- | --- | ---
  directory | QString |
  enterDirectory | bool | 1

- mkdir ()

  returns nothing

- mode ()

  returns (KFile.Mode)

- nameFilter ()

  returns (QString)

- numDirs ()

  returns (int)

- numFiles ()

  returns (int)

- onlyDoubleClickSelectsFiles ()

  returns (bool)

- pathChanged ()

  returns nothing

- prepareCompletionObjects ()

  returns nothing

- progressBar ()

  returns (KProgress)

- readConfig (a0, group = QString .null)

  returns nothing

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

- rereadDir ()

  returns nothing

- resetCursor ()

  returns nothing

- resizeEvent (a0)

  returns nothing
  In versions KDE 3.2.0 and above only

  Argument | Type | Default
  --- | --- | ---
  a0 | QResizeEvent |

- resizeEvent (a0)

  returns nothing
  In versions less than KDE 3.2.0 only

  Argument | Type | Default
  --- | --- | ---
  a0 | QResizeEvent |

- selectDir (item)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  item | KFileItem |

- selectFile (item)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  item | KFileItem |

- selectedItems ()

  returns (KFileItemList)

- setAcceptDrops (b)

  returns nothing
  In versions KDE 3.2.0 and above only

  Argument | Type | Default
  --- | --- | ---
  b | bool |

- setCurrentItem (filename)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  filename | QString |

- setDirLister (lister)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  lister | KDirLister |

- setDropOptions (options)

  returns nothing
  In versions KDE 3.2.0 and above only

  Argument | Type | Default
  --- | --- | ---
  options | int |

- setEnableDirHighlighting (enable)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  enable | bool |

- setMimeFilter (mimetypes)

  returns nothing
  In versions KDE 3.1.2 and above only

  Argument | Type | Default
  --- | --- | ---
  mimetypes | QStringList |

- setMode (m)

  returns nothing

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

- setNameFilter (filter)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  filter | QString |

- setOnlyDoubleClickSelectsFiles (enable)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  enable | bool |

- setPreviewWidget (w)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  w | QWidget |

- setShowHiddenFiles (s)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  s | bool |

- setSorting (a0)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  a0 | QDir.SortSpec |

- setURL (url, clearforward)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  url | KURL |
  clearforward | bool |

- setView (view)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  view | KFileView |

- setView (view)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  view | KFile.FileView |

- setViewConfig (config, group)

  returns nothing
  In versions KDE 3.1.0 and above only

  Argument | Type | Default
  --- | --- | ---
  config | KConfig |
  group | QString |

- setupActions ()

  returns nothing

- setupMenu (whichActions)

  returns nothing
  In versions KDE 3.1.0 and above only

  Argument | Type | Default
  --- | --- | ---
  whichActions | int |

- setupMenu ()

  returns nothing

- showHiddenFiles ()

  returns (bool)

- slotCompletionMatch (match)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  match | QString |

- sortByDate ()

  returns nothing

- sortByName ()

  returns nothing

- sortBySize ()

  returns nothing

- sortReversed ()

  returns nothing

- sorting ()

  returns (QDir.SortSpec)

- toggleDirsFirst ()

  returns nothing

- toggleIgnoreCase ()

  returns nothing

- updateDir ()

  returns nothing

- updateInformation (files, dirs)

  returns nothing

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

- updateSelectionDependentActions ()

  returns nothing

- updateSortActions ()

  returns nothing

- updateViewActions ()

  returns nothing

- url ()

  returns (KURL)

- urlEntered (a0)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  a0 | KURL |

- view ()

  returns (KFileView)

- viewChanged (newView)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  newView | KFileView |

- viewConfig ()

  returns (KConfig)
  In versions KDE 3.1.0 and above only

- viewConfigGroup ()

  returns (QString)
  In versions KDE 3.1.0 and above only

- viewWidget ()

  returns (QWidget)

- writeConfig (a0, group = QString .null)

  returns nothing

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