easygui icon indicating copy to clipboard operation
easygui copied to clipboard

Filemask "*" overriding specified filetypes

Open ajkswamy opened this issue 6 years ago • 1 comments

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

ajkswamy avatar Mar 18 '19 15:03 ajkswamy

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

zadacka avatar Mar 18 '19 21:03 zadacka