\hypertarget{classcalc__hsm_1_1_calc_hsm}{
\section{calc\_\-hsm.CalcHsm Class Reference}
\label{classcalc__hsm_1_1_calc_hsm}\index{calc\_\-hsm::CalcHsm@{calc\_\-hsm::CalcHsm}}
}
Calc state machine.  


Inheritance diagram for calc\_\-hsm.CalcHsm::\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2cm]{classcalc__hsm_1_1_calc_hsm}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
def \hyperlink{classcalc__hsm_1_1_calc_hsm_c157c9ee2e9a427e3ca8a93826de9033}{\_\-\_\-init\_\-\_\-}
\begin{CompactList}\small\item\em Calc state machine constructor. \item\end{CompactList}\item 
def \hyperlink{classcalc__hsm_1_1_calc_hsm_1bda6fc1e3491e17715bedff56f7ebd1}{Zero}
\begin{CompactList}\small\item\em Clear the textbox input and replace with a '0' string also reset the \hyperlink{classcalc__hsm_1_1_calc_hsm_16896b09098654d480a29bab6d04437d}{negative} variable. \item\end{CompactList}\item 
def \hyperlink{classcalc__hsm_1_1_calc_hsm_05d15f86e7b304578f50b58331e85b9c}{Negate}
\begin{CompactList}\small\item\em Clear the textbox input and replace with a '-0' string also set the \hyperlink{classcalc__hsm_1_1_calc_hsm_16896b09098654d480a29bab6d04437d}{negative} variable. \item\end{CompactList}\item 
def \hyperlink{classcalc__hsm_1_1_calc_hsm_4756402a73a196a831d8eacd8f77f1dc}{append}
\begin{CompactList}\small\item\em Append a character to the textbox input, if the \hyperlink{classcalc__hsm_1_1_calc_hsm_6699cdae0cb0bf336fd79e8d93f82b0b}{clear\_\-on\_\-next} variable is set then clear the textbox first. \item\end{CompactList}\item 
def \hyperlink{classcalc__hsm_1_1_calc_hsm_d896b624e7ea7e37c1d4b50ebbb770ba}{calc}
\begin{CompactList}\small\item\em Calculate the result of a function. \item\end{CompactList}\item 
def \hyperlink{classcalc__hsm_1_1_calc_hsm_8e20e64a33ec0282328a986a25ec1d94}{on}
\begin{CompactList}\small\item\em The 'on' state functon. \item\end{CompactList}\item 
def \hyperlink{classcalc__hsm_1_1_calc_hsm_55951211fe0cca11a723c999c5cc8445}{ready}
\begin{CompactList}\small\item\em The 'ready' state functon. \item\end{CompactList}\item 
def \hyperlink{classcalc__hsm_1_1_calc_hsm_7bdb81eae3b0eb3b77248a9c7948c0d2}{result}
\begin{CompactList}\small\item\em The 'result' state functon. \item\end{CompactList}\item 
def \hyperlink{classcalc__hsm_1_1_calc_hsm_3ba492f96fc5a6164244cec8c472b671}{begin}
\item 
def \hyperlink{classcalc__hsm_1_1_calc_hsm_386423a77d941a6afcbb0f7189a0a77d}{negated1}
\begin{CompactList}\small\item\em The 'negated1' state functon. \item\end{CompactList}\item 
def \hyperlink{classcalc__hsm_1_1_calc_hsm_aeb698a0cb31d24285630cd7a5964df7}{operand1}
\begin{CompactList}\small\item\em The 'operand1' state functon. \item\end{CompactList}\item 
def \hyperlink{classcalc__hsm_1_1_calc_hsm_16c42c37ba7f840e4b050d446d66b5f8}{zero1}
\begin{CompactList}\small\item\em The 'zero1' state functon. \item\end{CompactList}\item 
def \hyperlink{classcalc__hsm_1_1_calc_hsm_b25d307c274d6431e1573ee838d5bb69}{int1}
\begin{CompactList}\small\item\em The 'int1' state functon. \item\end{CompactList}\item 
def \hyperlink{classcalc__hsm_1_1_calc_hsm_203883cd78c27402ca1a36cb074b9504}{frac1}
\begin{CompactList}\small\item\em The 'frac1' state functon. \item\end{CompactList}\item 
def \hyperlink{classcalc__hsm_1_1_calc_hsm_0700fb2425206b389e9e178551fbd362}{error}
\begin{CompactList}\small\item\em The 'error' state functon. \item\end{CompactList}\item 
def \hyperlink{classcalc__hsm_1_1_calc_hsm_5098b61482423fab991c05aa7f8c04a4}{opEntered}
\begin{CompactList}\small\item\em The 'opEntered' state functon. \item\end{CompactList}\item 
def \hyperlink{classcalc__hsm_1_1_calc_hsm_1646884fae95d054b9142a5556717451}{negated2}
\begin{CompactList}\small\item\em The 'negated2' state functon. \item\end{CompactList}\item 
def \hyperlink{classcalc__hsm_1_1_calc_hsm_b821f62ad8069a4d14d6b3935218568e}{operand2}
\begin{CompactList}\small\item\em The 'operand2' state functon. \item\end{CompactList}\item 
def \hyperlink{classcalc__hsm_1_1_calc_hsm_e8d54c9e57889bb2e37679641277a851}{zero2}
\begin{CompactList}\small\item\em The 'zero2' state functon. \item\end{CompactList}\item 
def \hyperlink{classcalc__hsm_1_1_calc_hsm_54f1cfd32b9af015532cbb98634d9f29}{int2}
\begin{CompactList}\small\item\em The 'int2' state functon. \item\end{CompactList}\item 
def \hyperlink{classcalc__hsm_1_1_calc_hsm_040306dbe3039d7146856b11daeed002}{frac2}
\begin{CompactList}\small\item\em The 'frac2' state functon. \item\end{CompactList}\end{CompactItemize}
\subsection*{Static Public Attributes}
\begin{CompactItemize}
\item 
\hyperlink{classcalc__hsm_1_1_calc_hsm_f8b4bbb132ade7b2b7be787af8c16112}{entry} = None
\begin{CompactList}\small\item\em The Tkinter text entry widget. \item\end{CompactList}\item 
\hyperlink{classcalc__hsm_1_1_calc_hsm_6699cdae0cb0bf336fd79e8d93f82b0b}{clear\_\-on\_\-next} = False
\begin{CompactList}\small\item\em If this flag is set we clear the textbox and replace text with new character on the next signal. \item\end{CompactList}\item 
\hyperlink{classcalc__hsm_1_1_calc_hsm_16896b09098654d480a29bab6d04437d}{negative} = False
\begin{CompactList}\small\item\em If this flag is set the current operand will be negative. \item\end{CompactList}\end{CompactItemize}


\subsection{Detailed Description}
Calc state machine. 

\subsection{Member Function Documentation}
\hypertarget{classcalc__hsm_1_1_calc_hsm_c157c9ee2e9a427e3ca8a93826de9033}{
\index{calc\_\-hsm::CalcHsm@{calc\_\-hsm::CalcHsm}!\_\-\_\-init\_\-\_\-@{\_\-\_\-init\_\-\_\-}}
\index{\_\-\_\-init\_\-\_\-@{\_\-\_\-init\_\-\_\-}!calc_hsm::CalcHsm@{calc\_\-hsm::CalcHsm}}
\subsubsection[{\_\-\_\-init\_\-\_\-}]{\setlength{\rightskip}{0pt plus 5cm}def calc\_\-hsm.CalcHsm.\_\-\_\-init\_\-\_\- ( {\em self}, \/   {\em entry})}}
\label{classcalc__hsm_1_1_calc_hsm_c157c9ee2e9a427e3ca8a93826de9033}


Calc state machine constructor. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em entry}]TheTkinter text entry widget that the \hyperlink{namespacecalc}{calc} state machine will use \end{description}
\end{Desc}
\hypertarget{classcalc__hsm_1_1_calc_hsm_4756402a73a196a831d8eacd8f77f1dc}{
\index{calc\_\-hsm::CalcHsm@{calc\_\-hsm::CalcHsm}!append@{append}}
\index{append@{append}!calc_hsm::CalcHsm@{calc\_\-hsm::CalcHsm}}
\subsubsection[{append}]{\setlength{\rightskip}{0pt plus 5cm}def calc\_\-hsm.CalcHsm.append ( {\em self}, \/   {\em c})}}
\label{classcalc__hsm_1_1_calc_hsm_4756402a73a196a831d8eacd8f77f1dc}


Append a character to the textbox input, if the \hyperlink{classcalc__hsm_1_1_calc_hsm_6699cdae0cb0bf336fd79e8d93f82b0b}{clear\_\-on\_\-next} variable is set then clear the textbox first. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em c}]The character to insert \end{description}
\end{Desc}
\hypertarget{classcalc__hsm_1_1_calc_hsm_3ba492f96fc5a6164244cec8c472b671}{
\index{calc\_\-hsm::CalcHsm@{calc\_\-hsm::CalcHsm}!begin@{begin}}
\index{begin@{begin}!calc_hsm::CalcHsm@{calc\_\-hsm::CalcHsm}}
\subsubsection[{begin}]{\setlength{\rightskip}{0pt plus 5cm}def calc\_\-hsm.CalcHsm.begin ( {\em self}, \/   {\em state\_\-event})}}
\label{classcalc__hsm_1_1_calc_hsm_3ba492f96fc5a6164244cec8c472b671}


\hypertarget{classcalc__hsm_1_1_calc_hsm_d896b624e7ea7e37c1d4b50ebbb770ba}{
\index{calc\_\-hsm::CalcHsm@{calc\_\-hsm::CalcHsm}!calc@{calc}}
\index{calc@{calc}!calc_hsm::CalcHsm@{calc\_\-hsm::CalcHsm}}
\subsubsection[{calc}]{\setlength{\rightskip}{0pt plus 5cm}def calc\_\-hsm.CalcHsm.calc ( {\em self}, \/   {\em operand1}, \/   {\em operand2}, \/   {\em operator\_\-})}}
\label{classcalc__hsm_1_1_calc_hsm_d896b624e7ea7e37c1d4b50ebbb770ba}


Calculate the result of a function. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em operand1}]The first operand \item[{\em operand2}]The second operand \item[{\em operator\_\-}]The operator (+, -, $\ast$, /) to use \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]The result of the function \end{Desc}
\hypertarget{classcalc__hsm_1_1_calc_hsm_0700fb2425206b389e9e178551fbd362}{
\index{calc\_\-hsm::CalcHsm@{calc\_\-hsm::CalcHsm}!error@{error}}
\index{error@{error}!calc_hsm::CalcHsm@{calc\_\-hsm::CalcHsm}}
\subsubsection[{error}]{\setlength{\rightskip}{0pt plus 5cm}def calc\_\-hsm.CalcHsm.error ( {\em self}, \/   {\em state\_\-event})}}
\label{classcalc__hsm_1_1_calc_hsm_0700fb2425206b389e9e178551fbd362}


The 'error' state functon. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em signal}]The signal to handle \item[{\em param}]The accompaning parameter \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]\hyperlink{classcalc__hsm_1_1_calc_hsm_8e20e64a33ec0282328a986a25ec1d94}{on()} (the parent state) \end{Desc}
\hypertarget{classcalc__hsm_1_1_calc_hsm_203883cd78c27402ca1a36cb074b9504}{
\index{calc\_\-hsm::CalcHsm@{calc\_\-hsm::CalcHsm}!frac1@{frac1}}
\index{frac1@{frac1}!calc_hsm::CalcHsm@{calc\_\-hsm::CalcHsm}}
\subsubsection[{frac1}]{\setlength{\rightskip}{0pt plus 5cm}def calc\_\-hsm.CalcHsm.frac1 ( {\em self}, \/   {\em state\_\-event})}}
\label{classcalc__hsm_1_1_calc_hsm_203883cd78c27402ca1a36cb074b9504}


The 'frac1' state functon. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em signal}]The signal to handle \item[{\em param}]The accompaning parameter \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]NULL if the signal is handled otherwise \hyperlink{classcalc__hsm_1_1_calc_hsm_aeb698a0cb31d24285630cd7a5964df7}{operand1()} (the parent state) \end{Desc}
\hypertarget{classcalc__hsm_1_1_calc_hsm_040306dbe3039d7146856b11daeed002}{
\index{calc\_\-hsm::CalcHsm@{calc\_\-hsm::CalcHsm}!frac2@{frac2}}
\index{frac2@{frac2}!calc_hsm::CalcHsm@{calc\_\-hsm::CalcHsm}}
\subsubsection[{frac2}]{\setlength{\rightskip}{0pt plus 5cm}def calc\_\-hsm.CalcHsm.frac2 ( {\em self}, \/   {\em state\_\-event})}}
\label{classcalc__hsm_1_1_calc_hsm_040306dbe3039d7146856b11daeed002}


The 'frac2' state functon. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em signal}]The signal to handle \item[{\em param}]The accompaning parameter \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]NULL if the signal is handled otherwise \hyperlink{classcalc__hsm_1_1_calc_hsm_b821f62ad8069a4d14d6b3935218568e}{operand2()} (the parent state) \end{Desc}
\hypertarget{classcalc__hsm_1_1_calc_hsm_b25d307c274d6431e1573ee838d5bb69}{
\index{calc\_\-hsm::CalcHsm@{calc\_\-hsm::CalcHsm}!int1@{int1}}
\index{int1@{int1}!calc_hsm::CalcHsm@{calc\_\-hsm::CalcHsm}}
\subsubsection[{int1}]{\setlength{\rightskip}{0pt plus 5cm}def calc\_\-hsm.CalcHsm.int1 ( {\em self}, \/   {\em state\_\-event})}}
\label{classcalc__hsm_1_1_calc_hsm_b25d307c274d6431e1573ee838d5bb69}


The 'int1' state functon. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em signal}]The signal to handle \item[{\em param}]The accompaning parameter \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]NULL if the signal is handled otherwise \hyperlink{classcalc__hsm_1_1_calc_hsm_aeb698a0cb31d24285630cd7a5964df7}{operand1()} (the parent state) \end{Desc}
\hypertarget{classcalc__hsm_1_1_calc_hsm_54f1cfd32b9af015532cbb98634d9f29}{
\index{calc\_\-hsm::CalcHsm@{calc\_\-hsm::CalcHsm}!int2@{int2}}
\index{int2@{int2}!calc_hsm::CalcHsm@{calc\_\-hsm::CalcHsm}}
\subsubsection[{int2}]{\setlength{\rightskip}{0pt plus 5cm}def calc\_\-hsm.CalcHsm.int2 ( {\em self}, \/   {\em state\_\-event})}}
\label{classcalc__hsm_1_1_calc_hsm_54f1cfd32b9af015532cbb98634d9f29}


The 'int2' state functon. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em signal}]The signal to handle \item[{\em param}]The accompaning parameter \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]NULL if the signal is handled otherwise \hyperlink{classcalc__hsm_1_1_calc_hsm_b821f62ad8069a4d14d6b3935218568e}{operand2()} (the parent state) \end{Desc}
\hypertarget{classcalc__hsm_1_1_calc_hsm_05d15f86e7b304578f50b58331e85b9c}{
\index{calc\_\-hsm::CalcHsm@{calc\_\-hsm::CalcHsm}!Negate@{Negate}}
\index{Negate@{Negate}!calc_hsm::CalcHsm@{calc\_\-hsm::CalcHsm}}
\subsubsection[{Negate}]{\setlength{\rightskip}{0pt plus 5cm}def calc\_\-hsm.CalcHsm.Negate ( {\em self})}}
\label{classcalc__hsm_1_1_calc_hsm_05d15f86e7b304578f50b58331e85b9c}


Clear the textbox input and replace with a '-0' string also set the \hyperlink{classcalc__hsm_1_1_calc_hsm_16896b09098654d480a29bab6d04437d}{negative} variable. 

\hypertarget{classcalc__hsm_1_1_calc_hsm_386423a77d941a6afcbb0f7189a0a77d}{
\index{calc\_\-hsm::CalcHsm@{calc\_\-hsm::CalcHsm}!negated1@{negated1}}
\index{negated1@{negated1}!calc_hsm::CalcHsm@{calc\_\-hsm::CalcHsm}}
\subsubsection[{negated1}]{\setlength{\rightskip}{0pt plus 5cm}def calc\_\-hsm.CalcHsm.negated1 ( {\em self}, \/   {\em state\_\-event})}}
\label{classcalc__hsm_1_1_calc_hsm_386423a77d941a6afcbb0f7189a0a77d}


The 'negated1' state functon. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em signal}]The signal to handle \item[{\em param}]The accompaning parameter \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]NULL if the signal is handled otherwise \hyperlink{classcalc__hsm_1_1_calc_hsm_8e20e64a33ec0282328a986a25ec1d94}{on()} (the parent state) \end{Desc}
\hypertarget{classcalc__hsm_1_1_calc_hsm_1646884fae95d054b9142a5556717451}{
\index{calc\_\-hsm::CalcHsm@{calc\_\-hsm::CalcHsm}!negated2@{negated2}}
\index{negated2@{negated2}!calc_hsm::CalcHsm@{calc\_\-hsm::CalcHsm}}
\subsubsection[{negated2}]{\setlength{\rightskip}{0pt plus 5cm}def calc\_\-hsm.CalcHsm.negated2 ( {\em self}, \/   {\em state\_\-event})}}
\label{classcalc__hsm_1_1_calc_hsm_1646884fae95d054b9142a5556717451}


The 'negated2' state functon. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em signal}]The signal to handle \item[{\em param}]The accompaning parameter \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]NULL if the signal is handled otherwise \hyperlink{classcalc__hsm_1_1_calc_hsm_8e20e64a33ec0282328a986a25ec1d94}{on()} (the parent state) \end{Desc}
\hypertarget{classcalc__hsm_1_1_calc_hsm_8e20e64a33ec0282328a986a25ec1d94}{
\index{calc\_\-hsm::CalcHsm@{calc\_\-hsm::CalcHsm}!on@{on}}
\index{on@{on}!calc_hsm::CalcHsm@{calc\_\-hsm::CalcHsm}}
\subsubsection[{on}]{\setlength{\rightskip}{0pt plus 5cm}def calc\_\-hsm.CalcHsm.on ( {\em self}, \/   {\em state\_\-event})}}
\label{classcalc__hsm_1_1_calc_hsm_8e20e64a33ec0282328a986a25ec1d94}


The 'on' state functon. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em signal}]The signal to handle \item[{\em param}]The accompaning parameter \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]Always NULL as this is the top level state function \end{Desc}
\hypertarget{classcalc__hsm_1_1_calc_hsm_5098b61482423fab991c05aa7f8c04a4}{
\index{calc\_\-hsm::CalcHsm@{calc\_\-hsm::CalcHsm}!opEntered@{opEntered}}
\index{opEntered@{opEntered}!calc_hsm::CalcHsm@{calc\_\-hsm::CalcHsm}}
\subsubsection[{opEntered}]{\setlength{\rightskip}{0pt plus 5cm}def calc\_\-hsm.CalcHsm.opEntered ( {\em self}, \/   {\em state\_\-event})}}
\label{classcalc__hsm_1_1_calc_hsm_5098b61482423fab991c05aa7f8c04a4}


The 'opEntered' state functon. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em signal}]The signal to handle \item[{\em param}]The accompaning parameter \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]NULL if the signal is handled otherwise \hyperlink{classcalc__hsm_1_1_calc_hsm_8e20e64a33ec0282328a986a25ec1d94}{on()} (the parent state) \end{Desc}
\hypertarget{classcalc__hsm_1_1_calc_hsm_aeb698a0cb31d24285630cd7a5964df7}{
\index{calc\_\-hsm::CalcHsm@{calc\_\-hsm::CalcHsm}!operand1@{operand1}}
\index{operand1@{operand1}!calc_hsm::CalcHsm@{calc\_\-hsm::CalcHsm}}
\subsubsection[{operand1}]{\setlength{\rightskip}{0pt plus 5cm}def calc\_\-hsm.CalcHsm.operand1 ( {\em self}, \/   {\em state\_\-event})}}
\label{classcalc__hsm_1_1_calc_hsm_aeb698a0cb31d24285630cd7a5964df7}


The 'operand1' state functon. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em signal}]The signal to handle \item[{\em param}]The accompaning parameter \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]NULL if the signal is handled otherwise \hyperlink{classcalc__hsm_1_1_calc_hsm_8e20e64a33ec0282328a986a25ec1d94}{on()} (the parent state) \end{Desc}
\hypertarget{classcalc__hsm_1_1_calc_hsm_b821f62ad8069a4d14d6b3935218568e}{
\index{calc\_\-hsm::CalcHsm@{calc\_\-hsm::CalcHsm}!operand2@{operand2}}
\index{operand2@{operand2}!calc_hsm::CalcHsm@{calc\_\-hsm::CalcHsm}}
\subsubsection[{operand2}]{\setlength{\rightskip}{0pt plus 5cm}def calc\_\-hsm.CalcHsm.operand2 ( {\em self}, \/   {\em state\_\-event})}}
\label{classcalc__hsm_1_1_calc_hsm_b821f62ad8069a4d14d6b3935218568e}


The 'operand2' state functon. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em signal}]The signal to handle \item[{\em param}]The accompaning parameter \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]NULL if the signal is handled otherwise \hyperlink{classcalc__hsm_1_1_calc_hsm_8e20e64a33ec0282328a986a25ec1d94}{on()} (the parent state) \end{Desc}
\hypertarget{classcalc__hsm_1_1_calc_hsm_55951211fe0cca11a723c999c5cc8445}{
\index{calc\_\-hsm::CalcHsm@{calc\_\-hsm::CalcHsm}!ready@{ready}}
\index{ready@{ready}!calc_hsm::CalcHsm@{calc\_\-hsm::CalcHsm}}
\subsubsection[{ready}]{\setlength{\rightskip}{0pt plus 5cm}def calc\_\-hsm.CalcHsm.ready ( {\em self}, \/   {\em state\_\-event})}}
\label{classcalc__hsm_1_1_calc_hsm_55951211fe0cca11a723c999c5cc8445}


The 'ready' state functon. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em signal}]The signal to handle \item[{\em param}]The accompaning parameter \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]NULL if the signal is handled otherwise \hyperlink{classcalc__hsm_1_1_calc_hsm_8e20e64a33ec0282328a986a25ec1d94}{on()} (the parent state) \end{Desc}
\hypertarget{classcalc__hsm_1_1_calc_hsm_7bdb81eae3b0eb3b77248a9c7948c0d2}{
\index{calc\_\-hsm::CalcHsm@{calc\_\-hsm::CalcHsm}!result@{result}}
\index{result@{result}!calc_hsm::CalcHsm@{calc\_\-hsm::CalcHsm}}
\subsubsection[{result}]{\setlength{\rightskip}{0pt plus 5cm}def calc\_\-hsm.CalcHsm.result ( {\em self}, \/   {\em state\_\-event})}}
\label{classcalc__hsm_1_1_calc_hsm_7bdb81eae3b0eb3b77248a9c7948c0d2}


The 'result' state functon. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em signal}]The signal to handle \item[{\em param}]The accompaning parameter \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]\hyperlink{classcalc__hsm_1_1_calc_hsm_55951211fe0cca11a723c999c5cc8445}{ready()} (the parent state) \end{Desc}
\hypertarget{classcalc__hsm_1_1_calc_hsm_1bda6fc1e3491e17715bedff56f7ebd1}{
\index{calc\_\-hsm::CalcHsm@{calc\_\-hsm::CalcHsm}!Zero@{Zero}}
\index{Zero@{Zero}!calc_hsm::CalcHsm@{calc\_\-hsm::CalcHsm}}
\subsubsection[{Zero}]{\setlength{\rightskip}{0pt plus 5cm}def calc\_\-hsm.CalcHsm.Zero ( {\em self})}}
\label{classcalc__hsm_1_1_calc_hsm_1bda6fc1e3491e17715bedff56f7ebd1}


Clear the textbox input and replace with a '0' string also reset the \hyperlink{classcalc__hsm_1_1_calc_hsm_16896b09098654d480a29bab6d04437d}{negative} variable. 

\hypertarget{classcalc__hsm_1_1_calc_hsm_16c42c37ba7f840e4b050d446d66b5f8}{
\index{calc\_\-hsm::CalcHsm@{calc\_\-hsm::CalcHsm}!zero1@{zero1}}
\index{zero1@{zero1}!calc_hsm::CalcHsm@{calc\_\-hsm::CalcHsm}}
\subsubsection[{zero1}]{\setlength{\rightskip}{0pt plus 5cm}def calc\_\-hsm.CalcHsm.zero1 ( {\em self}, \/   {\em state\_\-event})}}
\label{classcalc__hsm_1_1_calc_hsm_16c42c37ba7f840e4b050d446d66b5f8}


The 'zero1' state functon. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em signal}]The signal to handle \item[{\em param}]The accompaning parameter \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]NULL if the signal is handled otherwise \hyperlink{classcalc__hsm_1_1_calc_hsm_aeb698a0cb31d24285630cd7a5964df7}{operand1()} (the parent state) \end{Desc}
\hypertarget{classcalc__hsm_1_1_calc_hsm_e8d54c9e57889bb2e37679641277a851}{
\index{calc\_\-hsm::CalcHsm@{calc\_\-hsm::CalcHsm}!zero2@{zero2}}
\index{zero2@{zero2}!calc_hsm::CalcHsm@{calc\_\-hsm::CalcHsm}}
\subsubsection[{zero2}]{\setlength{\rightskip}{0pt plus 5cm}def calc\_\-hsm.CalcHsm.zero2 ( {\em self}, \/   {\em state\_\-event})}}
\label{classcalc__hsm_1_1_calc_hsm_e8d54c9e57889bb2e37679641277a851}


The 'zero2' state functon. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em signal}]The signal to handle \item[{\em param}]The accompaning parameter \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]NULL if the signal is handled otherwise \hyperlink{classcalc__hsm_1_1_calc_hsm_b821f62ad8069a4d14d6b3935218568e}{operand2()} (the parent state) \end{Desc}


\subsection{Member Data Documentation}
\hypertarget{classcalc__hsm_1_1_calc_hsm_6699cdae0cb0bf336fd79e8d93f82b0b}{
\index{calc\_\-hsm::CalcHsm@{calc\_\-hsm::CalcHsm}!clear\_\-on\_\-next@{clear\_\-on\_\-next}}
\index{clear\_\-on\_\-next@{clear\_\-on\_\-next}!calc_hsm::CalcHsm@{calc\_\-hsm::CalcHsm}}
\subsubsection[{clear\_\-on\_\-next}]{\setlength{\rightskip}{0pt plus 5cm}{\bf calc\_\-hsm.CalcHsm.clear\_\-on\_\-next} = False\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{classcalc__hsm_1_1_calc_hsm_6699cdae0cb0bf336fd79e8d93f82b0b}


If this flag is set we clear the textbox and replace text with new character on the next signal. 

\hypertarget{classcalc__hsm_1_1_calc_hsm_f8b4bbb132ade7b2b7be787af8c16112}{
\index{calc\_\-hsm::CalcHsm@{calc\_\-hsm::CalcHsm}!entry@{entry}}
\index{entry@{entry}!calc_hsm::CalcHsm@{calc\_\-hsm::CalcHsm}}
\subsubsection[{entry}]{\setlength{\rightskip}{0pt plus 5cm}{\bf calc\_\-hsm.CalcHsm.entry} = None\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{classcalc__hsm_1_1_calc_hsm_f8b4bbb132ade7b2b7be787af8c16112}


The Tkinter text entry widget. 

\hypertarget{classcalc__hsm_1_1_calc_hsm_16896b09098654d480a29bab6d04437d}{
\index{calc\_\-hsm::CalcHsm@{calc\_\-hsm::CalcHsm}!negative@{negative}}
\index{negative@{negative}!calc_hsm::CalcHsm@{calc\_\-hsm::CalcHsm}}
\subsubsection[{negative}]{\setlength{\rightskip}{0pt plus 5cm}{\bf calc\_\-hsm.CalcHsm.negative} = False\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{classcalc__hsm_1_1_calc_hsm_16896b09098654d480a29bab6d04437d}


If this flag is set the current operand will be negative. 



The documentation for this class was generated from the following file:\begin{CompactItemize}
\item 
\hyperlink{calc__hsm_8py}{calc\_\-hsm.py}\end{CompactItemize}
