(self, master, enableDragDrop=False, dragDropCallback=None,
                 dataValidityCallback=None, sizeHint=None, *args)
:param master: the master widget
        :type master: OWWidget or OWComponent
        :param enableDragDrop: flag telling whether drag and drop is enabled
        :type enableDragDrop: bool
        :param dragDropCallback: callback for the end of drop event
        :type dragDropCallback: function
        :param dataValidityCallback: callback that accepts or ignores dragEnter
            and dragMove events
        :type dataValidityCallback: function with one argument (event)
        :param sizeHint: size hint
        :type sizeHint: QSize
        :param args: optional arguments for the inherited constructor
:param master: the master widget
        :type master: OWWidget or OWComponent
        :param enableDragDrop: flag telling whether drag and drop is enabled
        :type enableDragDrop: bool
        :param dragDropCallback: callback for the end of drop event
        :type dragDropCallback: function
        :param dataValidityCallback: callback that accepts or ignores dragEnter
            and dragMove events
        :type dataValidityCallback: function with one argument (event)
        :param sizeHint: size hint
        :type sizeHint: QSize
        :param args: optional arguments for the inherited constructor
: param master : the master widget : type master : OWWidget or OWComponent : param enableDragDrop : flag telling whether drag and drop is enabled : type enableDragDrop : bool : param dragDropCallback : callback for the end of drop event : type dragDropCallback : function : param dataValidityCallback : callback that accepts or ignores dragEnter and dragMove events : type dataValidityCallback : function with one argument ( event ) : param sizeHint : size hint : type sizeHint : QSize : param args : optional arguments for the inherited constructor
def __init__(self, master, enableDragDrop=False, dragDropCallback=None,
                 dataValidityCallback=None, sizeHint=None, *args):
        """
        :param master: the master widget
        :type master: OWWidget or OWComponent
        :param enableDragDrop: flag telling whether drag and drop is enabled
        :type enableDragDrop: bool
        :param dragDropCallback: callback for the end of drop event
        :type dragDropCallback: function
        :param dataValidityCallback: callback that accepts or ignores dragEnter
            and dragMove events
        :type dataValidityCallback: function with one argument (event)
        :param sizeHint: size hint
        :type sizeHint: QSize
        :param args: optional arguments for the inherited constructor
        """
        self.master = master
        super().__init__(*args)
        self.drop_callback = dragDropCallback
        self.valid_data_callback = dataValidityCallback
        if not sizeHint:
            self.size_hint = QtCore.QSize(150, 100)
        else:
            self.size_hint = sizeHint
        if enableDragDrop:
            self.setDragEnabled(True)
            self.setAcceptDrops(True)
            self.setDropIndicatorShown(True)
def __init__ ( self , master , enableDragDrop = False , dragDropCallback = None , dataValidityCallback = None , sizeHint = None , * args ) : self . master = master super ( ) . __init__ ( * args ) self . drop_callback = dragDropCallback self . valid_data_callback = dataValidityCallback if not sizeHint : self . size_hint = QtCore . QSize ( 150 , 100 ) else : self . size_hint = sizeHint if enableDragDrop : self . setDragEnabled ( True ) self . setAcceptDrops ( True ) self . setDropIndicatorShown ( True )