Skip to content

PlaceMatchRequest

Qt Base Class: QPlaceMatchRequest

Signature: QPlaceMatchRequest(self) -> None QPlaceMatchRequest(self, other: PySide6.QtLocation.QPlaceMatchRequest) -> None

Base classes

Name Children Inherits
QPlaceMatchRequest
PySide6.QtLocation
QPlaceMatchRequest(self) -> None

⋔ Inheritance diagram

graph TD
  1473573485376["location.PlaceMatchRequest"]
  1473573358496["QtLocation.QPlaceMatchRequest"]
  1473291690208["Shiboken.Object"]
  140713234304496["builtins.object"]
  1473573358496 --> 1473573485376
  1473291690208 --> 1473573358496
  140713234304496 --> 1473291690208

🛈 DocStrings

Bases: QPlaceMatchRequest

Source code in prettyqt\location\placematchrequest.py
class PlaceMatchRequest(location.QPlaceMatchRequest):
    def __setitem__(self, index: str, val: datatypes.Variant):
        attrs = self.parameters()
        attrs[index] = val
        self.setParameters(attrs)

    def __getitem__(self, index: str) -> datatypes.Variant:
        attr = self.parameters()
        if index not in attr:
            raise KeyError(f"Key {index!r} does not exist.")
        return attr[index]

    def get_places(self) -> list[location.Place]:
        return [location.Place(i) for i in self.places()]