(self, filetypes, initdir, initfile)
| 280 | sticky=W+E) |
| 281 | |
| 282 | def askfilename(self, filetypes, initdir, initfile): # htest # |
| 283 | # Extracted from browse_file so can mock for unittests. |
| 284 | # Cannot unittest as cannot simulate button clicks. |
| 285 | # Test by running htest, such as by running this file. |
| 286 | return filedialog.Open(parent=self, filetypes=filetypes)\ |
| 287 | .show(initialdir=initdir, initialfile=initfile) |
| 288 | |
| 289 | def browse_file(self): |
| 290 | filetypes = [ |