code: def setWidgetValue( widget, value ):
      
      for wtype in reversed(_widgetValueTypes):
          if isinstance(widget, wtype[0]):
              try:
                  wtype[2](widget, value)
              except:
                  return False
              return True
      return False
docs: Sets the value for the inputed widget to the given value.  This will be \
      controlled by the type of widget it is.  You can define new types by \
      calling the registerWidgetValue method.
      
      :param      widget | <QWidget>
                  value  | <variant>
      
      :return     <bool> success