GeoAreaMonitorInfo
Base classes
| Name |
Children |
Inherits |
QGeoAreaMonitorInfo PySide6.QtPositioning QGeoAreaMonitorInfo(self, other: PySide6.QtPositioning.QGeoAreaMonitorInfo, /) -> None |
|
|
⋔ Inheritance diagram
graph TD
3412551020["positioning.GeoAreaMonitorInfo"]
1605067541["QtPositioning.QGeoAreaMonitorInfo"]
37984305["Shiboken.Object"]
2751680898["builtins.object"]
1605067541 --> 3412551020
37984305 --> 1605067541
2751680898 --> 37984305
🛈 DocStrings
Bases: QGeoAreaMonitorInfo
Source code in prettyqt/positioning/geoareamonitorinfo.py
| class GeoAreaMonitorInfo(QtPositioning.QGeoAreaMonitorInfo):
def __str__(self):
return self.name()
def __repr__(self):
return get_repr(self, self.name())
def get_area(self) -> QtPositioning.QGeoShape:
area = self.area()
match area:
case QtPositioning.QGeoCircle():
return positioning.GeoCircle(area)
case QtPositioning.QGeoRectangle():
return positioning.GeoRectangle(area)
case QtPositioning.QGeoPath():
return positioning.GeoPath(area)
case QtPositioning.QGeoPolygon():
return positioning.GeoPolygon(area)
case QtPositioning.QGeoShape():
return positioning.GeoShape(area)
case _:
raise RuntimeError
def get_expiration(self) -> core.DateTime:
return core.DateTime(self.expiration())
|
:fa-brands-github: Show source on GitHub