Update showdatanodes.py
This commit is contained in:
+2
-11
@@ -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})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user