Инструменты пользователя

Инструменты сайта


products:pyrog:api:lastest:types:helper

Текст документации сгенерирован автоматически из исходного кода.
Если обнаружили ошибку, отправьте об этом сообщение на 📧почту.

Module: helper

Classes

HelperBridge

Methods

register_helper_instance
def register_helper_instance(calling_filepath: str, helper_instance) -> bool

Parameters:

  • calling_filepath: str — (without description)
  • helper_instance — (without description)

Returns:

  • bool — (without description)
get_plugin_dir_for_file
def get_plugin_dir_for_file(calling_filepath: str) -> str

Parameters:

  • calling_filepath: str — (without description)

Returns:

  • str — (without description)
save_plugin_settings_values
def save_plugin_settings_values(plugin_dir: str)

Parameters:

  • plugin_dir: str — (without description)
save_plugin_settings_params
def save_plugin_settings_params(plugin_dir: str)

Parameters:

  • plugin_dir: str — (without description)
plugin_localstorage_dir_abspath
def plugin_localstorage_dir_abspath(plugin_dir: str) -> str

Parameters:

  • plugin_dir: str — (without description)

Returns:

  • str — (without description)

Helper

Inherits: QObject

This class provides utilitarian functions and signals from Manager application.

Attributes:

  • plugin_language_changing: Signal[str] — This signal is sent when the user changes the current language of the plugin. The Manager application sends this signal when initializing the plugin if the selected language differs from the original one.
  • plugin_deactivating: Signal — This signal is sent when the user deactivates the plugin; it is needed to notify the plugin that it is necessary to prepare for shutdown.
  • app_closing: Signal — This signal is sent when the user closes the Manager application; it is needed to notify the plugin that it is necessary to prepare for shutdown.
  • settings_editing_starting: Signal — This signal is sent when the user starts editing settings, before editing becomes available. It is necessary to notify the plugin that the values of settings can be changed at any time, and it should make the necessary preparations.
  • settings_editing_finished: Signal[bool] — This signal is sent when the user has finished editing settings.
    • True — the user has chosen save settings option
    • False — the user has chosen cancellation of saving settings values.

Constructor:

def Helper.__init__(parent = None)

Parameters:

  • parent — (without description)

Methods

delete
def delete()

Delete instance of Helper class from list of instances.

Attention: this method is only for Manager using.

save_settings_parameters
def save_settings_parameters()

Saves settings parameters in database

Saves parameters of properties of PropertyContainer that method Plugin.settings() returns

Raises:

  • RuntimeError — the plugin has no settings.
save_settings_values
def save_settings_values()

Saves settings values in database

Saves values of properties of PropertyContainer that method Plugin.settings() returns

Raises:

  • RuntimeError — the plugin has no settings.
plugin_dir_abspath
def plugin_dir_abspath() -> str

Returns absolute plugin directory path

Returns:

  • str — absolute plugin directory path
plugin_localstorage_dir_abspath
def plugin_localstorage_dir_abspath() -> str

Returns absolute path to plugin local storage directory located in «manager/data/plugins_ls»

Returns:

  • str — absolute path to plugin local storage directory
products/pyrog/api/lastest/types/helper.txt · Последнее изменение: 127.0.0.1