Returns the current value for the widget.  If this widget is checkable
        then the bitor value for all checked items is returned, otherwise, the
        selected value is returned.
        
        :return     <int>

def currentValue(self):
        """
        Returns the current value for the widget.  If this widget is checkable
        then the bitor value for all checked items is returned, otherwise, the
        selected value is returned.
        
        :return     <int>
        """
        enum  = self.enum()
        if ( self.isCheckable() ):
            value = 0
            for i in self.checkedIndexes():
                value |= enum[nativestring(self.itemText(i))]
            return value
        else:
            try:
                return enum[nativestring(self.itemText(self.currentIndex()))]
            except KeyError:
                return 0