27 lines
533 B
Python
27 lines
533 B
Python
class ShowText:
|
|
@classmethod
|
|
def INPUT_TYPES(s):
|
|
return {"required": {
|
|
"text": ("STRING", {"forceInput": True}),
|
|
}}
|
|
|
|
INPUT_IS_LIST = True
|
|
RETURN_TYPES = ("STRING",)
|
|
FUNCTION = "notify"
|
|
OUTPUT_NODE = True
|
|
OUTPUT_IS_LIST = (True,)
|
|
|
|
CATEGORY = "utils"
|
|
|
|
def notify(self, text):
|
|
return {"ui": {"text": text}, "result": (text,)}
|
|
|
|
|
|
NODE_CLASS_MAPPINGS = {
|
|
"ShowText|pysssss": ShowText,
|
|
}
|
|
|
|
NODE_DISPLAY_NAME_MAPPINGS = {
|
|
"ShowText|pysssss": "Show Text 🐍",
|
|
}
|