introduction to gui programming note that while on unix-like systems file suffix of dbm is fineon windows each dbm "fileis actually three files so for windows file dialogs the pattern should be dbm dat and the default extension dbm dat--but the actual filename should have suffix of dbmso the last four characters must be chopped off the filename in we saw how to create and use regular expressions to match text create dialog-style gui program that can be used to enter and test regexesas shown in figure figure the regex program you will need to read the re module' documentation since the program must behave correctly in the face of invalid regexes or when iterating over the match groupssince in most cases the regex won' have as many match groups as there are labels to show them make sure the program has full support for keyboard users--with navigation to the text entry widgets using alt+ and alt+tcontrol of the checkboxes with alt+ and alt+dprogram termination on ctrl+ and escand recalculation if the user presses and releases key in either of the text entry widgetsand whenever checkbox is checked or unchecked the program is not too difficult to writealthough the code for displaying the matches and the group numbers (and names where specifiedis tiny bit tricky-- solution is provided in regex-tk pywwhich is about one hundred forty lines