panda3d.core.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

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

Return type

Sequence[string]

static getClassType() → TypeHandle
Return type

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
Return type

string

property 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.

Return type

string