code: def selectNumber(self):
          
          le = self.lineEdit()
          text = asUnicode(le.text())
          if self.opts['suffix'] == '':
              le.setSelection(0, len(text))
          else:
              try:
                  index = text.index(' ')
              except ValueError:
                  return
              le.setSelection(0, index)
docs: Select the numerical portion of the text to allow quick editing by the user.