Quote:
Originally Posted by X-Raym
All I know is that it seems that running GUI Python framework from REAPER like Tkinter isn't stable at all: the action list may become unclickable, and some other artifacts like this.
https://forum.cockos.com/showthread.php?p=1888983
It is better to use the beyond.reaper bridge and run the script outside REAPER. Though, it is less performant if you have a lot of REAPER API function calls.
https://github.com/ReaTeam/ReaScript...nd%20reaper.py
Just curious: can you show us a screenshot of your GUI ?
FOr simple GUi script, you may prefer use Lua and GFX function, with Lokasenna template GUI for eg.
|
That's a shame. I thought Tkinter was at least safe, but it makes sense that it would block the event loop now thinking about it.
I'm aware of both beyond.reaper and Lokasenna's GUI library. For my purposes I need to draw and control two separate windows, which, as far as I'm aware, the current Lua GUI functionality doesn't seem to allow in one script.
Yesterday I wrote a more user friendly (and possibly faster, havent run any tests yet) alternative to beyond.reaper which is a simple TCP server running inside Reaper. In addition to this, a method that goes through reaper_python and sws_python at import and replaces all API functions with remote calls to this server and returns its response. It works pretty well so far, unless there are multiple instances of Reaper. When there are 3-4 Reaper instances at the same time this occurs:
https://forum.cockos.com/showthread.php?p=2041861
I will release it after some more testing and when this bug is solved.