Container of information about wx.FileType.
This class simply stores information associated with the file type. It doesn’t do anything on its own and is used only to allow constructing wx.FileType from it (instead of specifying all the constituent pieces separately) and also with wx.MimeTypesManager.AddFallbacks
.
Default constructor creates an invalid file type info object. |
|
Add another extension associated with this file type. |
|
Get the long, user visible description. |
|
Get the array of all extensions. |
|
Get the number of extensions. |
|
Get the icon filename. |
|
Get the index of the icon within the icon file. |
|
Get the MIME type. |
|
Get the open command. |
|
Get the print command. |
|
Get the short description (only used under Win32 so far) |
|
Set the file type description. |
|
Set the icon information. |
|
Set the command to be used for opening files of this type. |
|
Set the command to be used for printing files of this type. |
|
Set the short description for the files of this type. |
See |
|
See |
|
See |
|
See |
|
See |
|
See |
|
See |
|
See |
Possible constructors:
FileTypeInfo() -> None
FileTypeInfo(mimeType : str) -> None
FileTypeInfo(mimeType : str, openCmd : str, printCmd : str, description
: str, extension : str) -> None
FileTypeInfo(sArray : List[str]) -> None
Container of information about FileType.
__init__ (self)
Default constructor creates an invalid file type info object.
Such invalid/empty object should be used to terminate the list of file types passed to wx.MimeTypesManager.AddFallbacks
.
None
__init__ (self, mimeType : str)
Constructor specifying just the MIME type name.
Use the various setter methods below to fully initialize the object.
mimeType (string)
None
Added in version 2.9.2.
__init__ (self, mimeType : str, openCmd : str, printCmd : str, description : str, extension : str)
Constructor allowing to specify all the fields at once.
This is a vararg constructor taking an arbitrary number of extensions after the first four required parameters. The list must be terminated by NullPtr
, notice that NULL
can’t be used here in portable code (C++0x nullptr
can be used as well if your compiler supports it).
mimeType (string)
openCmd (string)
printCmd (string)
description (string)
extension (string)
None
__init__ (self, sArray : List[str])
Constructor using an array of string elements corresponding to the parameters of the constructor above in the same order.
sArray (list of strings)
None
Add another extension associated with this file type.
ext (string)
None
Added in version 2.9.2.
Get the long, user visible description.
str
Get the array of all extensions.
List[str]
Get the number of extensions.
int
Get the icon filename.
str
Get the index of the icon within the icon file.
int
Get the MIME type.
str
Get the open command.
str
Get the print command.
str
Get the short description (only used under Win32 so far)
str
Set the file type description.
description (string)
None
Added in version 2.9.2.
Set the icon information.
iconFile (string)
iconIndex (int)
None
Set the command to be used for opening files of this type.
command (string)
None
Added in version 2.9.2.
Set the command to be used for printing files of this type.
command (string)
None
Added in version 2.9.2.
Set the short description for the files of this type.
This is only used under MSW for some of the registry keys used for the file type registration.
shortDesc (string)
None
See GetDescription
and SetDescription
See GetExtensions
See GetIconFile
See GetIconIndex
See GetMimeType
See GetOpenCommand
and SetOpenCommand
See GetPrintCommand
and SetPrintCommand
See GetShortDesc
and SetShortDesc