def selectAll(self):
        length = len(self.getText())
        if length > 0:
            self.setSelectionRange(0, length)
dataset/ETHPy150Open pyjs/pyjs/pyjswidgets/pyjamas/ui/TextBoxBase.py/TextBoxBase.selectAll/original