#854·Gooey

MultiDirChooser does not show paths in textbox after selecting folders

Author: nicholasjaegerCreated Oct 31, 2022Updated Nov 25, 2025

Windows 10 Enterprise 21H2 Python 3.10.5 Gooey 1.0.8.1

` first_parser = sub_parsers.add_parser('Convert')

first_parser.add_argument('folders', widget='MultiDirChooser',nargs='*')

When I run this code (this is a snippet) I am able to pull up the GUI and browse under the MultiDirChooser widget. When I select multiple folders (using CTRL) and select OK, there is nothing in the corresponding textfield and I get this error message in console immediately after pressing OK:

PS C:\Users\nicholas.jaeger> & "C:/Program Files/Python310/python.exe" c:/Users/nicholas.jaeger/Documents/GitHub/PDF-Docx-App/gui.py Traceback (most recent call last): File "C:\Users\nicholas.jaeger\AppData\Roaming\Python\Python310\site-packages\gooey\gui\components\widgets\core\chooser.py", line 62, in spawnDialog self.processResult(self.getResult(fd)) File "C:\Users\nicholas.jaeger\AppData\Roaming\Python\Python310\site-packages\gooey\gui\components\widgets\core\chooser.py", line 147, in getResult paths[i] = os.sep.join([drives.group('drive')] + parts[1:]) AttributeError: 'NoneType' object has no attribute 'group'

If I type in a value into the textbox and press OK, I have no issues, so I think there might be a missing argument or bug.

I think that this is because of there not being text in the textfield, `