The TixExFileSelectBox widget has a ComboBox subwidget marked as ``Select Files of Type:'' (see figure 5-3). This widget contains some pre-set types of files for the user to choose from. For example, a word processor program can include choices such as ``Microsoft Word Documents'' and ``WordPerfect Documents''.
The TixExFileSelectBox widget has a -filetypes option for this purpose. As shown in line 3 through 7 in program 5-4, the value for the -filetypes option is a list. Each item in the list should contain two parts. The first part is a list of file patterns and the second part is the textual name for this type of files.