AnsweredAssumed Answered

Displaying features/rasters/GDBs as single files with TkFileDialog.askopenfilename

Question asked by octaffle on Jul 23, 2015
Latest reply on Jul 24, 2015 by ANohe-esristaff

I'm building a GUI for users to input their data with Tkinter and TkFileDialog. 


When I use TkFileDialog, it gives me a list of the individual files that Windows sees when I am trying to pick my file (top image), but I really want it to merge those files together to form one cohesive file like ArcCatalog does automatically (bottom image). 


I'm pretty sure my users are going to be up in arms about what file to pick if I don't make an effort to change it.  I know I can specify the extensions that show and that is a reasonable workaround. However, a user is completely unable to select files from a .GDB in this way.  I can think of a workaround for this but I would rather not have to do that as it is very labor intensive and makes me add a lot of extra parts to my GUI. 




I found IGxObjectFilter but that appears to not be a Python thing.  Is there a way to read the files cohesively within Python?