code: def widgetValue( widget ):
      
      for wtype in reversed(_widgetValueTypes):
          if isinstance(widget, wtype[0]):
              try:
                  return (wtype[1](widget), True)
              except:
                  return (None, False)
      return (None, False)
docs: Returns the value for the inputed widget based on its type.
      
      :param      widget | <QWidget>
      
      :return     (<variant> value, <bool> success)