Document new parameter

This commit is contained in:
Kovid Goyal 2022-07-20 10:39:52 +05:30
parent 637b67b928
commit 0c2f37ec28
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -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