def _viewer_default ( self ): viewer = ImageLibraryViewer() viewer.sync_trait( 'image_names', self.browser ) return viewer
def _viewer_default(self): viewer = ImageLibraryViewer() viewer.sync_trait("image_names", self.editor) return viewer
<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. Similarly, you can click on any <i>Copyright</i> or <i>License</i> column cell to display a pop-up view of the complete copyright or license information. You can also double-click on a <i>Volume</i> or <i>Name</i> column cell to copy the fully-qualified image library name to the system clipboard, which you can then paste into your Python source code to use the selected image in a Traits UI-based application. In order for this demo to run, you must have the etsdevtools.developer package installed. """ from etsdevtools.developer.tools.image_library_viewer \ import ImageLibraryViewer # Create an instance of the Image Library Viewer as the demo to run: popup = ImageLibraryViewer() # Run the demo (if invoked from the command line): if __name__ == '__main__': popup.configure_traits()
def _viewer_default(self): viewer = ImageLibraryViewer() viewer.sync_trait('image_names', self.editor) return viewer