code: def editorValue(self, editor):
          
          if isinstance(editor, QLineEdit):
              try:
                  return eval(nativestring(editor.text()))
              except:
                  return 0
          else:
              return super(NumericPlugin, self).editorValue(editor)
docs: Returns the value for this plugin from the inputed editor.
          
          :param      editor | <QtGui.QWidget>
          
          :return     <variant>