def display_location(): geolocation = get_geolocation() if geolocation is not None: image = _settings.get_path('%s%s%s' % ( 'resources/images/', geolocation.response.countrycode.string.lower(), '.png')) utils.notification(_addonname, _settings.get_string(4000) % ( geolocation.response.ipaddress.string, geolocation.response.countryname.string.title()), image=image)
def display_location(): geolocation = get_geolocation() if geolocation is not None: image = _settings.get_path('%s%s%s' % ( 'resources/images/', geolocation.response.countrycode.string.lower(), '.png')) utils.notification(_addonname, _settings.get_string(4000) % ( geolocation.response.ipaddress.string, geolocation.response.countryname.string), image=image)
def display_notification(id, subtext=False): image = _settings.get_path('icon.png') text = _settings.get_string(id) if subtext: text = text + ': ' + subtext utils.notification(_addonname, text, image=image)
def display_notification(text, subtext=False): image = _settings.get_path('icon.png') if subtext: text = text + ': ' + subtext utils.notification(_addonname, text, image=image)