User input in python scripts

MarkConnolly Posts: 2 Calcite Rank Badge
edited February 2023 in GeoStudio
What are the options for user input in a python script within Oasis? For example if I want the user to select a file from an open file dialog.

I have an exising py script that uses Tkinter to call an openfile dialog to allow the user to select the required file. The file is read in, parsed and a new file is created. I am modifying this script to write the data directly to an oasis database instead and althogh this works fine I'm just wondring if there is another or more suitable method to get user input using the oasis API?

Is creating and calling a custom GX with a custom dialog the only option?


  • MarkConnolly
    Never mind, it seems I can use gxproj.get_user_input() when running the script within Oasis
This discussion has been closed.