Update showdatanodes.py

This commit is contained in:
Dr. Peter Netz
2025-02-04 18:55:07 +01:00
committed by GitHub
parent 764bf3ed26
commit 8e4afce66d
+2 -11
View File
@@ -1,11 +1,5 @@
#!/usr/bin/python
'''Object detection node.'''
# pylint: disable=no-member
# pylint: disable=line-too-long
# pylint: disable=invalid-name
# pylint: disable=too-many-positional-arguments
# pylint: disable=too-many-arguments
# pylint: disable=too-many-locals
'''Show data nodes.'''
# Import the Python modules.
from typing import Any
@@ -21,11 +15,8 @@ class AnyType(str):
anyType = AnyType("*")
def updateDataWidget(node, widget, text):
'''Raises an event to update a widget's data.
'''Triggers an event to update a widget's data.
'''
# It is my understanding that this is supposed to work via the
# "ui" return value, but that appears to be no longer the case
# in the latest version of ComfyUI. credits: exectails
PromptServer.instance.send_sync("zentrocdot.data_updater.node_processed",
{"node": node, "widget": widget, "text": text})