octadist.scripting

class octadist.src.scripting.ScriptingConsole(root)[source]

Start scripting interface for an interactive code.

User can access to class variable (dynamic variable).

Output box

Input box

Parameters:

root (object) – Passing self object from another class to this class as root argument.

See also

settings

Program settings.

Examples

>>> import tkinter as tk
>>> master = tk.Tk()
>>> console = ScriptingConsole(master)
>>> console.scripting_start()
scripting_start()[source]

Start scripting console.

script_run_help()[source]

Show help messages.

script_run_list()[source]

Show list of commands in scripting run.

script_run_info()[source]

Show info of program.

script_run_doc()[source]

Show document of program.

script_run_show(args)[source]

Show value of variable that user requests.

Parameters:

args (str) – Arbitrary argument.

script_run_type(args)[source]

Show data type of variable.

Parameters:

args (str) – Arbitrary argument.

script_run_set(args)[source]

Set new value to variable.

Parameters:

args (str) – Arbitrary argument.

script_run_clear()[source]

Clear output box.

script_run_clean(args)[source]

Clear output box and clean variable.

script_run_restore()[source]

Restore all default settings.

script_run_history()[source]

Show history of command.

script_no_command(command)[source]

Show statement if command not found.

Parameters:

command (str) – Command that user submits.

script_execute(event)[source]

Execute input command scripting.

Parameters:

event (object) – Object for button interaction