def on_choose_folder(self, event):
with wx.Dirdialog(self, 'Choose a directory:',
style=wx.DD_DEFAULT_STYLE,
) as dlg:
if dlg.ShowModal() == wx.ID_OK:
self.directory.SetValue(dlg.GetPath())
Good point. I will mention it in the book, although since it is the same as the method from the file search utility, I don't think it needs to be reproduced in its entirety.
The text does not list the following method:
the method is in the repo code though.