products:pyrog:api:lastest:types:helper
Различия
Показаны различия между двумя версиями страницы.
| products:pyrog:api:lastest:types:helper [2026/05/15 20:49] – создано - внешнее изменение 127.0.0.1 | products:pyrog:api:lastest:types:helper [2026/08/08 22:24] (текущий) – удалено - внешнее изменение (Дата неизвестна) 127.0.0.1 | ||
|---|---|---|---|
| Строка 1: | Строка 1: | ||
| - | ~~NOTOC~~ | ||
| - | <WRAP center round info 80%> | ||
| - | Текст документации сгенерирован автоматически из [[https:// | ||
| - | Если обнаружили ошибку, | ||
| - | </ | ||
| - | |||
| - | ====== Module: helper ====== | ||
| - | |||
| - | |||
| - | ===== Classes ===== | ||
| - | |||
| - | |||
| - | ==== HelperBridge ==== | ||
| - | |||
| - | |||
| - | |||
| - | |||
| - | === Methods === | ||
| - | |||
| - | |||
| - | == register_helper_instance == | ||
| - | |||
| - | |||
| - | <code python> | ||
| - | |||
| - | **Parameters: | ||
| - | |||
| - | * **calling_filepath**: | ||
| - | * **helper_instance** | ||
| - | |||
| - | **Returns: | ||
| - | * //bool// — (without description) | ||
| - | |||
| - | |||
| - | == get_plugin_dir_for_file == | ||
| - | |||
| - | |||
| - | <code python> | ||
| - | |||
| - | **Parameters: | ||
| - | |||
| - | * **calling_filepath**: | ||
| - | |||
| - | **Returns: | ||
| - | * //str// — (without description) | ||
| - | |||
| - | |||
| - | == save_plugin_settings_values == | ||
| - | |||
| - | |||
| - | <code python> | ||
| - | |||
| - | **Parameters: | ||
| - | |||
| - | * **plugin_dir**: | ||
| - | |||
| - | |||
| - | == save_plugin_settings_params == | ||
| - | |||
| - | |||
| - | <code python> | ||
| - | |||
| - | **Parameters: | ||
| - | |||
| - | * **plugin_dir**: | ||
| - | |||
| - | |||
| - | == plugin_localstorage_dir_abspath == | ||
| - | |||
| - | |||
| - | <code python> | ||
| - | |||
| - | **Parameters: | ||
| - | |||
| - | * **plugin_dir**: | ||
| - | |||
| - | **Returns: | ||
| - | * //str// — (without description) | ||
| - | |||
| - | |||
| - | ==== Helper ==== | ||
| - | |||
| - | |||
| - | **Inherits: | ||
| - | |||
| - | |||
| - | This class provides utilitarian functions and signals from Manager application. | ||
| - | |||
| - | **Attributes: | ||
| - | |||
| - | * **plugin_language_changing**: | ||
| - | * **plugin_deactivating**: | ||
| - | * **app_closing**: | ||
| - | * **settings_editing_starting**: | ||
| - | * **settings_editing_finished**: | ||
| - | * //True// — the user has chosen save settings option | ||
| - | * //False// — the user has chosen cancellation of saving settings values. | ||
| - | |||
| - | **Constructor: | ||
| - | |||
| - | <code python> | ||
| - | |||
| - | **Parameters: | ||
| - | |||
| - | * **parent** | ||
| - | |||
| - | |||
| - | === Methods === | ||
| - | |||
| - | |||
| - | == delete == | ||
| - | |||
| - | |||
| - | <code python> | ||
| - | |||
| - | Delete instance of [[# | ||
| - | |||
| - | Attention: this method is only for Manager using. | ||
| - | |||
| - | |||
| - | == save_settings_parameters == | ||
| - | |||
| - | |||
| - | <code python> | ||
| - | |||
| - | Saves settings parameters in database | ||
| - | |||
| - | Saves parameters of properties of [[.: | ||
| - | |||
| - | **Raises:** | ||
| - | * **RuntimeError** — the plugin has no settings. | ||
| - | |||
| - | |||
| - | == save_settings_values == | ||
| - | |||
| - | |||
| - | <code python> | ||
| - | |||
| - | Saves settings values in database | ||
| - | |||
| - | Saves values of properties of [[.: | ||
| - | |||
| - | **Raises:** | ||
| - | * **RuntimeError** — the plugin has no settings. | ||
| - | |||
| - | |||
| - | == plugin_dir_abspath == | ||
| - | |||
| - | |||
| - | <code python> | ||
| - | |||
| - | Returns absolute plugin directory path | ||
| - | |||
| - | **Returns: | ||
| - | * //str// — absolute plugin directory path | ||
| - | |||
| - | |||
| - | == plugin_localstorage_dir_abspath == | ||
| - | |||
| - | |||
| - | <code python> | ||
| - | |||
| - | Returns absolute path to plugin local storage directory located in " | ||
| - | |||
| - | **Returns: | ||
| - | * //str// — absolute path to plugin local storage directory | ||