Gmsh fails to use "gmsh.finalize()" if gmsh api is called from a custom user interface
I have created a custom user interface intended to allow a user to create and view multiple meshes before choosing which mesh to ultimately save.
Once the code reaches gmsh.finalize() it shows the following error: ValueError: signal only works in main thread of the main interpreter.
Are there any suggestions on how to solve this error?