Skip to content

GeoSatelliteInfo

Qt Base Class: QGeoSatelliteInfo

Signature: QGeoSatelliteInfo(self) -> None QGeoSatelliteInfo(self, other: PySide6.QtPositioning.QGeoSatelliteInfo) -> None

Base classes

Name Children Inherits
QGeoSatelliteInfo
PySide6.QtPositioning
QGeoSatelliteInfo(self) -> None

⋔ Inheritance diagram

graph TD
  1473573459024["positioning.GeoSatelliteInfo"]
  1473573307744["QtPositioning.QGeoSatelliteInfo"]
  1473291690208["Shiboken.Object"]
  140713234304496["builtins.object"]
  1473573307744 --> 1473573459024
  1473291690208 --> 1473573307744
  140713234304496 --> 1473291690208

🛈 DocStrings

Bases: QGeoSatelliteInfo

Source code in prettyqt\positioning\geosatelliteinfo.py
class GeoSatelliteInfo(QtPositioning.QGeoSatelliteInfo):
    def __getitem__(self, index: AttributeStr):
        return self.attribute(ATTRIBUTE[index])

    def __setitem__(self, index: AttributeStr, value: float):
        self.setAttribute(ATTRIBUTE[index], value)

    def __delitem__(self, index: AttributeStr):
        self.removeAttribute(ATTRIBUTE[index])

    def __contains__(self, value: AttributeStr):
        return self.hasAttribute(ATTRIBUTE[value])

    def __int__(self):
        return self.satelliteIdentifier()

    def set_satellite_system(
        self, system: SatelliteSystemStr | QtPositioning.QGeoSatelliteInfo.SatelliteSystem
    ):
        """Set satellite system.

        Args:
            system: satellite system to use
        """
        self.setSatelliteSystem(SATELLITE_SYSTEMS.get_enum_value(system))

    def get_satellite_system(self) -> SatelliteSystemStr:
        """Return satellite system.

        Returns:
            satellite system
        """
        return SATELLITE_SYSTEMS.inverse[self.satelliteSystem()]

get_satellite_system() -> SatelliteSystemStr

Return satellite system.

Source code in prettyqt\positioning\geosatelliteinfo.py
def get_satellite_system(self) -> SatelliteSystemStr:
    """Return satellite system.

    Returns:
        satellite system
    """
    return SATELLITE_SYSTEMS.inverse[self.satelliteSystem()]

set_satellite_system(system: SatelliteSystemStr | QtPositioning.QGeoSatelliteInfo.SatelliteSystem)

Set satellite system.

Parameters:

Name Type Description Default
system SatelliteSystemStr | SatelliteSystem

satellite system to use

required
Source code in prettyqt\positioning\geosatelliteinfo.py
def set_satellite_system(
    self, system: SatelliteSystemStr | QtPositioning.QGeoSatelliteInfo.SatelliteSystem
):
    """Set satellite system.

    Args:
        system: satellite system to use
    """
    self.setSatelliteSystem(SATELLITE_SYSTEMS.get_enum_value(system))