Poco-extension. Hidden button is always clicked

Now my server is only on gui script as I descriped above. Without sleep command I get correct behavior (returns true or false). But with sleep it’s not works. It’s like that with sleep command rpc call try to run from another place. Is it possible?

What if you try to printout the traceback.
Can you give us the results from this call

--cbk = poco.agent.rpc.call("Execute", "return gui.is_enabled(gui.get_node('back_icon'))")
cbk = poco.agent.rpc.call("Execute", "print(debug.traceback())")
cbk.wait()
print("Execute: result: '%s'" % cbk.result)
# time.sleep(5)
# cbk = poco.agent.rpc.call("Execute", "return gui.is_enabled(gui.get_node('back_icon'))")
cbk = poco.agent.rpc.call("Execute", "print(debug.traceback())")
cbk.wait()
print("Execute: result: '%s'" % cbk.result)
[rpc]connected
Execute: result: ''

Process finished with exit code 0

Yes, but what did it say in the editor’s console log?

Sorry again). Founded that I have poco server on another port in main script. Commented it out and now it works!

3 Likes