Skip to content

PlaceContentMixin

Subclasses

Class Module Description
PlaceContent prettyqt.location.placecontent

⋔ Inheritance diagram

graph TD
  1473573468784["location.PlaceContentMixin"]
  140713234304496["builtins.object"]
  140713234304496 --> 1473573468784

🛈 DocStrings

Source code in prettyqt\location\placecontent.py
class PlaceContentMixin:
    def get_type(self) -> TypeStr:
        """Return the visibility of the place.

        Returns:
            Place type
        """
        return TYPE.inverse[self.type()]

    def get_user(self) -> location.PlaceUser:
        return location.PlaceUser(self.user())

    def get_supplier(self) -> location.PlaceSupplier:
        return location.PlaceSupplier(self.supplier())

get_type() -> TypeStr

Return the visibility of the place.

Source code in prettyqt\location\placecontent.py
def get_type(self) -> TypeStr:
    """Return the visibility of the place.

    Returns:
        Place type
    """
    return TYPE.inverse[self.type()]