NoteWorthy Composer Forum

Forums => Tips & Tricks => User Tools => Topic started by: Opagust on 2020-05-02 07:35 pm

Title: Timeout problem with Python tool
Post by: Opagust on 2020-05-02 07:35 pm
I'm experimenting with a user tool written in Python, since I like Python more then Lua. In this tool I use the module PySimpleGui to create a popup  window to accept some user input (see attachment 'Knipsel1'). The problem is: there seems to a timeout after about 10 seconds. If nothing is entered within that time, the tool aborts (see attachment 'Knipsel2').
I use the module PySimpleGui in other Python scripts and never had that problem. So I think the timeout is generated by the user tool environment of NWC.
Is there anyone who has an idea how to solve this?
Thanks.
Title: Re: Timeout problem with Python tool
Post by: Rick G. on 2020-05-02 08:07 pm
In you tool invocation, you might try checking one of these:
Title: Re: Timeout problem with Python tool
Post by: Opagust on 2020-05-02 08:52 pm
Thanks, Rick!

Checking 'Prompts for User Input' solved my problem.
Why didn't I thought about that?
But of course, you're always there to help the ignorents!