MCPcopy Index your code
hub / github.com/rawpython/remi / set_icon_data

Method set_icon_data

remi/gui.py:1350–1358  ·  view source on GitHub ↗

Allows to define an icon for the App Args: base64_data (str): base64 encoded image data (ie. "data:image/x-icon;base64,AAABAAEAEBA....") mimetype (str): mimetype of the image ("image/png" or "image/x-icon"...) rel (str): leave it unchang

(self, base64_data, mimetype="image/png", rel="icon")

Source from the content-addressed store, hash-verified

1348 self.add_child("favicon", '<link rel="%s" href="%s" type="%s" />'%(rel, filename, mimetype))
1349
1350 def set_icon_data(self, base64_data, mimetype="image/png", rel="icon"):
1351 """ Allows to define an icon for the App
1352
1353 Args:
1354 base64_data (str): base64 encoded image data (ie. "data:image/x-icon;base64,AAABAAEAEBA....")
1355 mimetype (str): mimetype of the image ("image/png" or "image/x-icon"...)
1356 rel (str): leave it unchanged (standard "icon")
1357 """
1358 self.add_child("favicon", '<link rel="%s" href="%s" type="%s" />'%(rel, base64_data, mimetype))
1359
1360 def set_internal_js(self, app_identifier, net_interface_ip, pending_messages_queue_length, websocket_timeout_timer_ms):
1361 self.add_child('internal_js',

Callers

nothing calls this directly

Calls 1

add_childMethod · 0.80

Tested by

no test coverage detected