INNER CODE UNIT · Python
_ExitWake
ok-oldking/ok-script · ok/ui/web/app.py:132
class _ExitWake:
"""Adapt the core ExitEvent stop protocol to an event-loop callback."""
def __init__(self, wake):
self.wake = wake
def stop(self):
self.wake()
def _script_templates():
"""Return the same BaseTask helper palette used by every UI."""
from ok.core.script_templates import serialize_script_templates
return serialize_script_templates()
def _color_hex(red, green, blue):
return f"#{red:02x}{green:02x}{blue:02x}"