Python GX: get_user_input with output of project_grids
NickWilliams
Posts: 27
in GX Developer
I have a get_user_input dialog that prompts the user to pick an existing grid from the project:
# ask the user to select a grid grid_file = gxproj.get_user_input(title='Specify existing TMI grid', prompt='TMI grid:', kind='list', items=project.project_grids, default=default_grid)The list usually works fine, but when I run it in a project with a lot of grids (maybe 100?) it displays the first 15 grids, and then only a few characters of the 16th grid path, and no more. Is there a limit to how many items can be included in the pick-list or how many characters?
Tagged:
0
Comments
-
Hi,
This is likely a bug and will need to be looked into. I made an active issue on Github for it: https://github.com/GeosoftInc/gxpy/issues/1121 -
Can confirm with
ret = gxpj.get_user_input('Testing a list', 'List', kind='list', default='WGS 84 / UTM zone 32N', items=gco.name_list(gco.LIST_COORDINATESYSTEM,datum_filter='WGS 84') )
0
This discussion has been closed.
Categories
- 771 All Categories
- 169 Products & Software
- 12 Seequent
- 224 Leapfrog
- 352 Geosoft
- 19 GeoStudio
- 11 Developers
- 1 Seequent Evo APIs
- 163 GX Developer
- 1 Early Access Programmes
- 2 Oasis montaj Field EAP