Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Picking multiple files with gxproj.get_user_input leads to string truncation #112

Open
jacquesbeaurain opened this issue Jan 10, 2019 · 1 comment

Comments

@jacquesbeaurain
Copy link
Contributor

From: https://geosoft.vanillacommunity.com/discussion/1396/python-gx-get-user-input-with-output-of-project-grids#latest

"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?"

@Terranigmus
Copy link

Can be confirmed 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') )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants