mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Document new parameter
This commit is contained in:
parent
637b67b928
commit
0c2f37ec28
@ -35,6 +35,8 @@ def get_resources(zfp, name_or_list_of_names, print_tracebacks_for_missing_resou
|
|||||||
:param name_or_list_of_names: List of paths to resources in the zip file using / as
|
:param name_or_list_of_names: List of paths to resources in the zip file using / as
|
||||||
separator, or a single path
|
separator, or a single path
|
||||||
|
|
||||||
|
:param print_tracebacks_for_missing_resources: When True missing resources are reported to STDERR
|
||||||
|
|
||||||
:return: A dictionary of the form ``{name : file_contents}``. Any names
|
:return: A dictionary of the form ``{name : file_contents}``. Any names
|
||||||
that were not found in the zip file will not be present in the
|
that were not found in the zip file will not be present in the
|
||||||
dictionary. If a single path is passed in the return value will
|
dictionary. If a single path is passed in the return value will
|
||||||
@ -68,6 +70,8 @@ def get_icons(zfp, name_or_list_of_names, plugin_name='', print_tracebacks_for_m
|
|||||||
:param plugin_name: The human friendly name of the plugin, used to load icons from
|
:param plugin_name: The human friendly name of the plugin, used to load icons from
|
||||||
the current theme, if present.
|
the current theme, if present.
|
||||||
|
|
||||||
|
:param print_tracebacks_for_missing_resources: When True missing resources are reported to STDERR
|
||||||
|
|
||||||
:return: A dictionary of the form ``{name : QIcon}``. Any names
|
:return: A dictionary of the form ``{name : QIcon}``. Any names
|
||||||
that were not found in the zip file will be null QIcons.
|
that were not found in the zip file will be null QIcons.
|
||||||
If a single path is passed in the return value will
|
If a single path is passed in the return value will
|
||||||
|
Loading…
x
Reference in New Issue
Block a user