Skip to content

get_value method on Node Widgets is replaced by the value itself #288

@aloytag

Description

@aloytag

When using add_combo_menu() or add_text_input() in order to add a built-in widget, I get the following error message:

File "/home/user/.local/lib/python3.9/site-packages/NodeGraphQt/widgets/node_widgets.py", line 116, in on_value_changed
    self.value_changed.emit(self.get_name(), self.get_value())
TypeError: 'str' object is not callable

If I use add_checkbox(), I get a similar result:

File "/home/user/.local/lib/python3.9/site-packages/NodeGraphQt/widgets/node_widgets.py", line 116, in on_value_changed
    self.value_changed.emit(self.get_name(), self.get_value())
TypeError: 'bool' object is not callable

It seems that, at some point, the get_value method is replaced by the value itself. It can be reproduced using basic_example.py.

NodeGraphQt version: 0.5.0
Qt.py version: 1.3.7
PySide2 version: 5.15.2.1
Python version: 3.9.2
OS: Debian GNU/Linux 11 (bullseye)

Regards.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions