PNMFileType

from acron.core import PNMFileType
class PNMFileType

Bases:

Bases: TypedWritable

This is the base class of a family of classes that represent particular image file types that PNMImage supports.

Inheritance diagram

digraph inheritance71936bd391 { bgcolor=transparent; rankdir=BT; size="8.0, 12.0"; "DTOOL_SUPER_BASE" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style=""]; "PNMFileType" [URL="acron.core.PNMFileType.html#acron.core.PNMFileType",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "TypedWritable" -> "PNMFileType" [arrowsize=0.75,style=""]; "TypedObject" [URL="acron.core.TypedObject.html#acron.core.TypedObject",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "DTOOL_SUPER_BASE" -> "TypedObject" [arrowsize=0.75,style=""]; "TypedWritable" [URL="acron.core.TypedWritable.html#acron.core.TypedWritable",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "TypedObject" -> "TypedWritable" [arrowsize=0.75,style=""]; }
property extensions → Sequence[string]

Returns the nth possible filename extension associated with this particular file type, without a leading dot.

static get_class_type()
get_extension()

Returns the nth possible filename extension associated with this particular file type, without a leading dot.

get_extensions() → list
get_name()
get_num_extensions()

Returns the number of different possible filename extensions associated with this particular file type.

get_suggested_extension()

Returns a suitable filename extension (without a leading dot) to suggest for files of this type, or empty string if no suggestions are available.

property name → string
property suggested_extension → string

Returns a suitable filename extension (without a leading dot) to suggest for files of this type, or empty string if no suggestions are available.