PNMFileType

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

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 get_class_type() TypeHandle
get_extension(n: int) str

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

get_extensions() list
get_name() str
get_num_extensions() int

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

get_suggested_extension() 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.