def _drag_event ( self, suffix, x = None, y = None, data = None,
                                    drag_result = None ):
        control = self.control
        handler = self.ui.handler
        method  = None

        owner   = getattr( control, '_owner', None )
        if owner is not None:
            method = getattr( handler, 'on_%s_%s' % ( owner.get_id(), suffix ),
                              None )

        if method is None:
            method = getattr( handler, 'on_%s' % suffix, None )

        if method is None:
            return wx.DragNone

        if x is None:
            result = method( self.ui.info, owner )
        else:
            result = method( self.ui.info, owner, x, y, data, drag_result )
        if result is None:
            result = drag_result
        return result

#-------------------------------------------------------------------------------
#  Defines the extensions needed to make the generic Theme class specific to
#  wxPython:
#-------------------------------------------------------------------------------
Close the sqlalchemy session opened by DB.
dataset/ETHPy150Open enthought/traitsui/traitsui/wx/toolkit.py/DragHandler._drag_event--crossover with--dataset/ETHPy150Open owtf/owtf/framework/db/db.py/DB.clean_up