wolfhece.math_parser.calculator

Author: HECE - University of Liege, Pierre Archambeau Date: 2024

Copyright (c) 2024 University of Liege. All rights reserved.

This script and its content are protected by copyright law. Unauthorized copying or distribution of this file, via any medium, is strictly prohibited.

Module Contents

class wolfhece.math_parser.calculator.Calculator(mapviewer=None)[source]

Bases: wx.Frame

Inheritance diagram of wolfhece.math_parser.calculator.Calculator

Calculator/Array creator

With this calculator, you can create arrays and perform operations on them. It is possible because the operations are parsed and evaluated by the math_parser module and mathematic operators are allowed directly on WolfArrays.

property command: str[source]
property comment: str[source]
property memory_txt[source]
pack(items, orient=wx.HORIZONTAL)[source]

Pack items in a sizer

reset_comment()[source]
reset_memory()[source]
memory_clear()[source]
memory_clear_event(e)[source]
check_command() bool[source]

Check if the command is valid

evaluate_multilines()[source]

Evaluate multiline commands

evaluate(mem_last_command=True)[source]

Evaluate the command

char_press(e: wx.KeyEvent)[source]

Handle key press

bt_press(key)[source]

Handle button press