def _viewer_default(self): viewer = FileSieve() viewer.sync_trait('selected_files', self.builder, 'files', mutual=False) return viewer
type information into any of the various fields to filter the set of files shown. For fields such as <i>volume<i>, the information you type can appear anywhere in the volume name to produce a match. The match is case insensitive. For numeric fields, such as <i>height</i> and <i>width</i>, you can type a number or a numeric relation (e.g. <=32). If you do not specify a relation, <i>less than or equal</i> is assumed. The valud relations are: '=', '!=', '<', '<=', '>' or '>='. If an image in the view is 32x32 or smaller, it will appear in the first column of the viewer. If it is larger than 32x32, then the value for that cell will be blank. However, you can click on the cell to display a pop-up view of the complete image. In order for this demo to run, you must have the etsdevtools.developer package installed. """ from etsdevtools.developer.tools.file_sieve \ import FileSieve # Create an instance of the File Sieve as the demo to run: popup = FileSieve() # Run the demo (if invoked from the command line): if __name__ == '__main__': popup.configure_traits()