PlaceMatchRequest
Base classes
| Name |
Children |
Inherits |
QPlaceMatchRequest PySide6.QtLocation QPlaceMatchRequest(self, /) -> None |
|
|
⋔ Inheritance diagram
graph TD
2494845069["location.PlaceMatchRequest"]
1676219402["QtLocation.QPlaceMatchRequest"]
37984305["Shiboken.Object"]
2751680898["builtins.object"]
1676219402 --> 2494845069
37984305 --> 1676219402
2751680898 --> 37984305
🛈 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:
msg = f"Key {index!r} does not exist."
raise KeyError(msg)
return attr[index]
def get_places(self) -> list[location.Place]:
return [location.Place(i) for i in self.places()]
|
:fa-brands-github: Show source on GitHub