KDE 4.4 PyKDE API Reference
  • KDE's Python API
  • Overview
  • PyKDE Home
  • Sitemap
  • Contact Us
 

KMimeTypeChooser Class Reference

from PyKDE4.kio import *

Inherits: KVBox → KHBox → QFrame → QWidget → QObject

Detailed Description

This widget provides a checkable list of all available mimetypes, and a list of selected ones, as well as a corresponding list of file extensions, an optional text and an optional edit button (not working yet). Mime types is presented in a list view, with name, comment and patterns columns.

Author:
Anders Lund (anders at alweb dk), jan 23, 2002


Enumerations

Visuals { Comments, Patterns, EditButton }

Methods

 __init__ (self, QString text=QString(), QStringList selectedMimeTypes=QStringList(), QString defaultGroup=QString(), QStringList groupsToShow=QStringList(), int visuals=Comments|Patterns|EditButton, QWidget parent=0)
QStringList mimeTypes (self)
QStringList patterns (self)

Method Documentation

__init__ (  self,
QString  text=QString(),
QStringList  selectedMimeTypes=QStringList(),
QString  defaultGroup=QString(),
QStringList  groupsToShow=QStringList(),
int  visuals=Comments|Patterns|EditButton,
QWidget  parent=0
)
QStringList mimeTypes (   self )

Returns:
a list of all selected selected mimetypes represented by their name.

QStringList patterns (   self )

Returns:
a list of the fileame patterns associated with all selected mimetypes.


Enumeration Documentation

Visuals
Enumerator:

  • Full Index

Modules

  • akonadi
  • dnssd
  • kdecore
  • kdeui
  • khtml
  • kio
  • knewstuff
  • kparts
  • kutils
  • nepomuk
  • phonon
  • plasma
  • polkitqt
  • solid
  • soprano
This documentation is maintained by Simon Edwards.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal