Hi Peter, thanks for sending in your idea. Unfortunately the code you send is not valid Python code and there seems to be no contact point with NEST simulator, so there is little we could do better than pointing to generic resources on the web that any decent search engine can find.
However, you may be interested to know that there already is a GUI for NEST called "NEST Desktop" → see https://nest-desktop.readthedocs.io It is even available in as an installation-free service to try out online at https://nest-desktop.apps.ebrains.eu/ for free. This code has matured over the past five years and I would think it to be difficult to reach the same stability and experience with a rewrite from scratch.
Best Dennis