Skip to content

MediaMetaData

Qt Base Class: QMediaMetaData

Signature: QMediaMetaData(self) -> None QMediaMetaData(self, QMediaMetaData: PySide6.QtMultimedia.QMediaMetaData) -> None

Base classes

Name Children Inherits
QMediaMetaData
PySide6.QtMultimedia
QMediaMetaData(self) -> None
MutableMapping
collections.abc
A MutableMapping is a generic container for associating

⋔ Inheritance diagram

graph TD
  1473573981216["multimedia.MediaMetaData"]
  1473573888496["QtMultimedia.QMediaMetaData"]
  1473291690208["Shiboken.Object"]
  140713234304496["builtins.object"]
  1473222543776["abc.MutableMapping"]
  1473222540848["abc.Mapping"]
  1473222211728["abc.Collection"]
  1473222226368["abc.Sized"]
  1473222223440["abc.Iterable"]
  1473222220512["abc.Container"]
  1473573888496 --> 1473573981216
  1473291690208 --> 1473573888496
  140713234304496 --> 1473291690208
  1473222543776 --> 1473573981216
  1473222540848 --> 1473222543776
  1473222211728 --> 1473222540848
  1473222226368 --> 1473222211728
  140713234304496 --> 1473222226368
  1473222223440 --> 1473222211728
  140713234304496 --> 1473222223440
  1473222220512 --> 1473222211728
  140713234304496 --> 1473222220512

🛈 DocStrings

Bases: QMediaMetaData, MutableMapping

Source code in prettyqt\multimedia\mediametadata.py
class MediaMetaData(
    QtMultimedia.QMediaMetaData,
    MutableMapping,
    metaclass=datatypes.QABCMeta,
):
    def __repr__(self):
        return get_repr(self, dict(self))

    def __setitem__(self, key: KeyStr, value: datatypes.Variant):
        if isinstance(key, str):
            key = KEY[key]
        self.insert(key, value)

    def __getitem__(self, key: KeyStr) -> datatypes.Variant:
        if isinstance(key, str):
            key = KEY[key]
        if key not in self.keys():
            raise KeyError(key)
        return self.value(key)

    def __delitem__(self, key: KeyStr):
        if isinstance(key, str):
            key = KEY[key]
        self.remove(key)

    def __bool__(self):
        return not self.isEmpty()

    def __iter__(self):
        return iter(self.keys())