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()
FileTypeInfo(mimeType)
FileTypeInfo(mimeType, openCmd, printCmd, description, extension)
FileTypeInfo(sArray)
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
.
__init__ (self, mimeType)
Constructor specifying just the MIME type name.
Use the various setter methods below to fully initialize the object.
mimeType (string) –
New in version 2.9.2.
__init__ (self, mimeType, openCmd, printCmd, description, extension)
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) –
__init__ (self, sArray)
Constuctor using an array of string elements corresponding to the parameters of the constructor above in the same order.
sArray (list of strings) –
Add another extension associated with this file type.
ext (string) –
New in version 2.9.2.
Get the long, user visible description.
string
Get the array of all extensions.
list of strings
Get the number of extensions.
int
Get the icon filename.
string
Get the index of the icon within the icon file.
int
Get the MIME type.
string
Get the open command.
string
Get the print command.
string
Get the short description (only used under Win32 so far)
string
Set the file type description.
description (string) –
New in version 2.9.2.
Set the icon information.
iconFile (string) –
iconIndex (int) –
Set the command to be used for opening files of this type.
command (string) –
New in version 2.9.2.
Set the command to be used for printing files of this type.
command (string) –
New 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) –
See GetDescription
and SetDescription
See GetExtensions
See GetIconFile
See GetIconIndex
See GetMimeType
See GetOpenCommand
and SetOpenCommand
See GetPrintCommand
and SetPrintCommand
See GetShortDesc
and SetShortDesc