robertlugg / easygui

easygui for Python
http://easygui.readthedocs.org/en/master/
BSD 3-Clause "New" or "Revised" License
455 stars 114 forks source link

Filemask "*" overriding specified filetypes #157

Open ajkswamy opened 5 years ago

ajkswamy commented 5 years ago

Currently in master:easygui/boxes/fileboxsetup.py, line 67, allFileTypeObject is being inserted into position 0 of filetypeObjects. This causes the filemask "*" to be the first option and the specified filetype as option, which can be activated with a dropdown. I think it should be inserted at position -1.

Example:

yml_file = fileopenbox(title="Select YML file with log2settings flags", filetypes=["*.yml"],multiple=False)

results in

Capture

zadacka commented 5 years ago

Good suggestion. Thanks also for the clear screenshot and code snippet.