def selectNumber(self):
le = self.lineEdit()<EOL>text = asUnicode(le.text())<EOL>if self.opts['<STR_LIT>'] == '<STR_LIT>':<EOL><INDENT>le.setSelection(<NUM_LIT:0>, len(text))<EOL><DEDENT>else:<EOL><INDENT>try:<EOL><INDENT>index = text.index('<STR_LIT:U+0020>')<EOL><DEDENT>except ValueError:<EOL><INDENT>return<EOL><DEDENT>le.setSelection(<NUM_LIT:0>, index)<EOL><DEDENT>
Select the numerical portion of the text to allow quick editing by the user.