:py:mod:`wolfhece.math_parser.calculator` ========================================= .. py:module:: wolfhece.math_parser.calculator .. autoapi-nested-parse:: 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 --------------- .. py:class:: Calculator(mapviewer=None) Bases: :py:obj:`wx.Frame` .. autoapi-inheritance-diagram:: wolfhece.math_parser.calculator.Calculator :parts: 1 :private-bases: 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. .. py:property:: command :type: str .. py:property:: comment :type: str .. py:property:: memory_txt .. py:method:: pack(items, orient=wx.HORIZONTAL) Pack items in a sizer .. py:method:: reset_comment() .. py:method:: reset_memory() .. py:method:: memory_clear() .. py:method:: memory_clear_event(e) .. py:method:: check_command() -> bool Check if the command is valid .. py:method:: evaluate_multilines() Evaluate multiline commands .. py:method:: evaluate(mem_last_command=True) Evaluate the command .. py:method:: char_press(e: wx.KeyEvent) Handle key press .. py:method:: bt_press(key) Handle button press