GRC and Python
edited February 23 in GeoStudio
Do we need GRC files if we design with Python? What is a solution for an elaborate menu? Is there a good example in Python?
No, GRC is only for the GX Language.
There are many Python-oriented GUI builders.
I have used QT to create a UI. Here is an example that applies SOM analysis to data in a Geosoft database. The process has two parts - `som_om.py` queries the open Geosoft environment and passes this state onto the QT processing tool (`som_om_qt.py`), which works in it's own separate process. The separate QT process interacts with the user to get parameters, does the work and puts results back in the database and control returns to `som_om.py`. See:
I have a preference for tkinter. It is simpler to install and to manage.1
You can follow the same programming pattern to have a separate application that uses tkinter. Note that you can also open tkinter windows in an extension, though we have a more elegant approach planned for the future. Extensions are a bit trickier to debug so I suggest you start with the separate program approach.1
This discussion has been closed.