(self)
it's a bool, wether there is content in the textbox
it's a bool, wether there is content in the textbox
it s a bool wether there is content in the textbox
def get_answer(self):
        '''it's a bool, wether there is content in the textbox
        '''
        assert len(self.boxes) == 1
        text = ""
        for box in self.boxes:
            text = text + box.data.text
        if text:
            return text
        else:
            return self.boxes[0].data.state
def get_answer ( self ) : assert len ( self . boxes ) == 1 text = "" for box in self . boxes : text = text + box . data . text if text : return text else : return self . boxes [ 0 ] . data . state