''' Example use of FindImage by name. ''' import DigitalMicrograph as DM searchStr = 'B' # the label is not case-sensitive img = DM.FindImageByLabel( searchStr ) if ( img is None ): print( 'No image [', searchStr, '] was found' ) else: img.ShowImage() img.SetName( 'Found image!' ) del img # Always explicitly delete Py_Image variables