[issue12219] tkinter.filedialog.askopenfilename XT dialog on Windows 7

2011-07-12 Thread digi proc
digi proc added the comment: By the way, that above C++ function is not re-entrant! I was lazy and just made a static return buffer. To make it re-entrant, you'd need to figure out how to allocate enough space in the DefFile string so the C function could write the selected filename to

[issue12219] tkinter.filedialog.askopenfilename XT dialog on Windows 7

2011-07-12 Thread digi proc
digi proc added the comment: Almost certainly a tkinter bug. A work around is below. First build a DLL from the following C++ source (and add a similar function for the 'save' dlg rather than the 'open' dlg): #include "windows.h" #include "Commd