Skip to content

PlaceIdReply

Base classes

Name Children Inherits
PlaceReplyMixin
prettyqt.location.placereply
QPlaceIdReply
PySide6.QtLocation
QPlaceIdReply(self, operationType: PySide6.QtLocation.QPlaceIdReply.OperationType, /, parent: PySide6.QtCore.QObject | None \= None) -> None

⋔ Inheritance diagram

graph TD
  3627270899["location.PlaceIdReply"]
  3765200330["location.PlaceReplyMixin"]
  3227531497["core.ObjectMixin"]
  2751680898["builtins.object"]
  3953913204["QtLocation.QPlaceIdReply"]
  2286347697["QtLocation.QPlaceReply"]
  3984060476["QtCore.QObject"]
  37984305["Shiboken.Object"]
  3765200330 --> 3627270899
  3227531497 --> 3765200330
  2751680898 --> 3227531497
  2751680898 --> 3765200330
  3953913204 --> 3627270899
  2286347697 --> 3953913204
  3984060476 --> 2286347697
  37984305 --> 3984060476
  2751680898 --> 37984305

🛈 DocStrings

Bases: PlaceReplyMixin, QPlaceIdReply

Manages saving and removal operations of places and categories.

Source code in prettyqt/location/placeidreply.py
class PlaceIdReply(location.PlaceReplyMixin, location.QPlaceIdReply):
    """Manages saving and removal operations of places and categories."""

    def __repr__(self):
        return get_repr(self, self.operationType())

    @classmethod
    def clone_from(cls, obj: location.QPlaceIdReply) -> Self:
        reply = cls(obj.operationType(), obj.parent())
        reply.setId(obj.id())
        return reply

    def get_operation_type(self) -> OperationTypeStr:
        """Get current operation_type.

        Returns:
            current operation_type
        """
        return OPERATION_TYPES.inverse[self.operationType()]

get_operation_type() -> OperationTypeStr

Get current operation_type.

Source code in prettyqt/location/placeidreply.py
def get_operation_type(self) -> OperationTypeStr:
    """Get current operation_type.

    Returns:
        current operation_type
    """
    return OPERATION_TYPES.inverse[self.operationType()]

:fa-brands-github: Show source on GitHub