[issue34029] tkinter.filedialog.askdirectory() crashing before dialog opens when importing pywinauto

Tal Einat report at bugs.python.org
Thu Jul 5 02:13:03 EDT 2018


Tal Einat <taleinat at gmail.com> added the comment:

Confirmed with Python 3.6.3 on Windows 10 64-bit: It hangs showing an empty window.

Debugging a bit, the hang happens in Lib/tkinter/commondialog.py, line 43:

s = w.tk.call(self.command, *w._options(self.options)) 

The value of self.command is 'tk_chooseDirectory', and w._options(self.options) just gives an empty tuple, so the actual call is:

s = w.tk.call('tk_chooseDirectory', ())

This means that the hang is within w.tk.call().

I'd follow this up with the pywinauto devs. To me this doesn't seem like something wrong with the tkinter module.

----------
nosy: +taleinat

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34029>
_______________________________________


More information about the Python-bugs-list mailing list