PNMFileType

from panda3d.core import PNMFileType
class PNMFileType

Bases: TypedWritable

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

Inheritance diagram

Inheritance diagram of PNMFileType

property extensions → Sequence[string]

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

static getClassType()TypeHandle
getExtension(n: int)str

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

getExtensions()list
getName()str
getNumExtensions()int

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

getSuggestedExtension()str

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.