[Python] pyqt-node-editor add button and functionality

Discussão em 'Python' iniciado por Stack, Maio 31, 2025.

  1. Stack

    Stack Membro Participativo

    I want to change the behaviour of the example_calculator from pyqt-nodeeditor by Pavel Krupala from gitlab (I dont know whether a Link ist allowed so i don't). I dont want the nodes to evaluate at every change, but instead only when i explicitly demand it. I would like to add a button or a line in the right-click-menu. Which allows me to trigger the methode doEvalOutputs in the class calc_sub_window, which would then evaluate all nodes. I assume that would be the right approach(?) How would I do that?

    I've looked in the Code but wasnt able to find a way. Google did not help either. I asked chatgpt and got just classnames that do not exist.

    Edit: since the other examples (outside of example_calculator) do not show any right-click menu, I assume that the menu must be defined in example_calculator itself, but I dont know where..

    thanks in advance.

    Continue reading...

Compartilhe esta Página