

@staticmethod
def FormToPySideWidget(form, ctx=sys.modules['__main__']):
    '\n        Use this method to convert a TForm* to a QWidget to be used by PySide\n\n        @param ctx: Context. Reference to a module that already imported QtGui module\n        '
    if (form is None):
        return None
    if (type(form).__name__ == 'SwigPyObject'):
        ptr_l = long(form)
        from ctypes import pythonapi, c_void_p, py_object
        pythonapi.PyCObject_FromVoidPtr.restype = py_object
        pythonapi.PyCObject_AsVoidPtr.argtypes = [c_void_p, c_void_p]
        form = pythonapi.PyCObject_FromVoidPtr(ptr_l, 0)
    return ctx.QtGui.QWidget.FromCObject(form)

dataset/ETHPy150Open EiNSTeiN-/idapython/pywraps/py_plgform.py PluginForm.FormToPySideWidget/original