GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||
GeezerVison is showing docs.wxpython.org — wx.MimeTypesManager — wxPython 4.3.2 Docs
|
Constructor puts the object in the “working” state. |
|
This function may be used to provide hard-wired fallbacks for the MIME types and extensions that might not be present in the system MIME database. |
|
Create a new association using the fields of wx.FileTypeInfo (at least the MIME type and the extension should be set). |
|
Returns a list of all known file types. |
|
Gather information about the files with given extension and return the corresponding wx.FileType object or nullptr if the extension is unknown. |
|
Gather information about the files with given MIME type and return the corresponding wx.FileType object or nullptr if the MIME type is unknown. |
|
This function returns |
|
Undo |
Class API¶Possible constructors:
MimeTypesManager() -> None
This class allows the application to retrieve information about all known MIME types from a system-specific location and the filename extensions to the MIME types and vice versa.
Constructor puts the object in the “working” state.
None
This function may be used to provide hard-wired fallbacks for the MIME types and extensions that might not be present in the system MIME database.
Please see the typetest sample for an example of using it.
fallbacks (wx.FileTypeInfo)
None
Create a new association using the fields of wx.FileTypeInfo (at least the MIME type and the extension should be set).
ftInfo (wx.FileTypeInfo)
Returns a list of all known file types.
List[str]
Gather information about the files with given extension and return the corresponding wx.FileType object or nullptr if the extension is unknown.
The extension parameter may have, or not, the leading dot, if it has it, it is stripped automatically. It must not however be empty.
extension (string)
Gather information about the files with given MIME type and return the corresponding wx.FileType object or nullptr if the MIME type is unknown.
mimeType (string)
This function returns True if either the given mimeType is exactly the same as wildcard or if it has the same category and the subtype of wildcard is “”.
Note that the “x” wildcard is not allowed in mimeType itself.
The comparison done by this function is case insensitive so it is not necessary to convert the strings to the same case before calling it.
mimeType (string)
wildcard (string)
bool
Undo Associate .
ft (wx.FileType)
bool