worthless-launcher/worthless/classes/launcher/iconotherlink.py

10 lines
295 B
Python
Raw Normal View History

class IconOtherLink:
def __init__(self, title, url):
self.title = title
self.url = url
@staticmethod
def from_dict(data) -> 'IconOtherLink':
"""Creates a launcher icon other link from a dictionary."""
return IconOtherLink(data["title"], data["url"])