def from_PolynomialRing(K1, a, K0):
        try:
            return K1.new(a)
        except (CoercionFailed, GeneratorsError):
            return None
Handles a Python object being dragged over the control.
dataset/ETHPy150Open sympy/sympy/sympy/polys/domains/fractionfield.py/FractionField.from_PolynomialRing--crossover with--dataset/ETHPy150Open enthought/pyface/pyface/dock/dock_window.py/DockWindow.wx_drag_any