Logo Search packages:      
Sourcecode: pythoncard version File versions  Download package

def rpn::RPN::add_digit (   self,
  new_value 
)

add a new digit to the result window 

Definition at line 265 of file rpn.py.

00265                                   :
        ''' add a new digit to the result window '''
        # start at 0 after an operation (+-*/ or Enter)
        if self._stack.get_flag() == 1:
            self.components.result.text = self.components.result.text + new_value
        elif self._stack.get_flag() == 0:
            self.components.result.text = new_value
        self._stack.set_flag()

    def storeX(self):


Generated by  Doxygen 1.6.0   Back to index