def __init__(self, interface): self.interface = interface if self.interface.icon_id: self.icon = Icon.load(self.interface.icon_id) else: self.icon = None
def __init__(self, interface): self.interface = interface self.native = [] if self.interface.icon_id: self.icon = Icon.load(self.interface.icon_id) else: self.icon = None
def icon(self, name): self._icon = Icon.load(name, default=self.default_icon)