GRC and Python

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?

Comments

  • IanMacLeod
    edited November 2017
    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:

    https://github.com/GeosoftInc/gxpy/tree/master/examples/geosoft_research/self_organizing_maps
  • I have a preference for tkinter. It is simpler to install and to manage.
  • IanMacLeod
    edited November 2017
    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.
This discussion has been closed.