pwem.viewers.filehandlers module

This modules contains file handlers to be registered in the scipion file browser

class pwem.viewers.filehandlers.ChimeraHandler[source]

Bases: FileHandler

getFileActions(objFile)[source]

Return actions that can be done with this object. Actions will be displayed in the context menu and the first one will be the default when double-click.

getFileIcon(objFile)[source]

Return the icon name for a given file.

class pwem.viewers.filehandlers.ImageFileHandler[source]

Bases: FileHandler

getFileActions(objFile)[source]

Return actions that can be done with this object. Actions will be displayed in the context menu and the first one will be the default when double-click.

getFilePreview(objFile)[source]

Return the preview image and description for the specific object.

class pwem.viewers.filehandlers.ImajeJFileHandler[source]

Bases: FileHandler

getFileActions(objFile)[source]

Return actions that can be done with this object. Actions will be displayed in the context menu and the first one will be the default when double-click.

getFileIcon(objFile)[source]

Return the icon name for a given file.

class pwem.viewers.filehandlers.MdFileHandler[source]

Bases: ImageFileHandler

getFileIcon(objFile)[source]

Return the icon name for a given file.

getFilePreview(objFile)[source]

Return the preview image and description for the specific object.

class pwem.viewers.filehandlers.ParticleFileHandler[source]

Bases: ImageFileHandler

getFileIcon(objFile)[source]

Return the icon name for a given file.

class pwem.viewers.filehandlers.StackHandler[source]

Bases: ImageFileHandler

getFileIcon(objFile)[source]

Return the icon name for a given file.

class pwem.viewers.filehandlers.VolFileHandler[source]

Bases: ImageFileHandler

getFileIcon(objFile)[source]

Return the icon name for a given file.

pwem.viewers.filehandlers.getImageFromPath(imagePath)[source]

Read an image using Xmipp, convert to PIL and then return as expected by Tk.

pwem.viewers.filehandlers.getPILImage(imageXmipp, dim=None, normalize=True)[source]

Given an image read by Xmipp, convert it to PIL.

pwem.viewers.filehandlers.getTkImage(imageXmipp, filename, dim)[source]