npyscreen
npyscreen copied to clipboard
Update form from main thread
I have an npyscreen form, and I instantiate it with the standard run command:
App = TestApp()
App.run()
I am migrating from a pyqt4 form. This form is less about user interactions and more about providing information to the user. I need to control the form from the main loop. That is, after I call run, I need to return to the prompt, or maybe a better way to say it is that I need to call run asynchronously. I assume the best way to do this would be to use a separate thread, but (1) I am not sure this is true or if there is a better way, (2) I cannot find any examples of how to actually do this.
Thanks alot for any help or examples you can provide.