module funcwin.storing_functions

Short summary

module tkinterquickhelper.funcwin.storing_functions

Common functions used for FrameFunction and FrameParams.

source on GitHub

Functions

function

truncated documentation

_private_restore

Restores the parameters stored by _private_store, returns a list of dictionaries (one of each line stored by _private_store). …

_private_store

Stores the parameters into a file, the function adds the parameter in a new line. It a parameter is a password (name=password, …

get_icon

Returns a filename corresponding the tkinterquickhelper icon.

interpret_parameter

Interprets a parameter.

Documentation

Common functions used for FrameFunction and FrameParams.

source on GitHub

tkinterquickhelper.funcwin.storing_functions._private_restore(function_name, pwd=True)[source]

Restores the parameters stored by _private_store, returns a list of dictionaries (one of each line stored by _private_store).

Parameters:
  • function_name – name of the function (a unique string, the function is not called)

  • pwd – empty every password

Returns:

list of dictionaries

The function replaces every substring #*###n####*# y end of line.

source on GitHub

tkinterquickhelper.funcwin.storing_functions._private_store(function_name, param)[source]

Stores the parameters into a file, the function adds the parameter in a new line. It a parameter is a password (name=password, the password will be encrypted using sha1).

Parameters:
  • function_name – name of the function (a unique string, the function is not called)

  • param – (dict) list of parameters

The function replaces every end of line into #*###n####*#.

source on GitHub

tkinterquickhelper.funcwin.storing_functions.get_icon()[source]

Returns a filename corresponding the tkinterquickhelper icon.

Returns:

filename

source on GitHub

tkinterquickhelper.funcwin.storing_functions.interpret_parameter(ty, s)[source]

Interprets a parameter.

Parameters:
  • ty – type (the return type)

  • s – value to interpret (a string)

Returns:

value

source on GitHub