⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 activex.py

📁 Wxpython Implemented on Windows CE, Source code
💻 PY
📖 第 1 页 / 共 2 页
字号:
# This file was created automatically by SWIG 1.3.29.
# Don't modify this file, modify the SWIG interface instead.

import _activex
import new
new_instancemethod = new.instancemethod
def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
    if (name == "thisown"): return self.this.own(value)
    if (name == "this"):
        if type(value).__name__ == 'PySwigObject':
            self.__dict__[name] = value
            return
    method = class_type.__swig_setmethods__.get(name,None)
    if method: return method(self,value)
    if (not static) or hasattr(self,name):
        self.__dict__[name] = value
    else:
        raise AttributeError("You cannot add attributes to %s" % self)

def _swig_setattr(self,class_type,name,value):
    return _swig_setattr_nondynamic(self,class_type,name,value,0)

def _swig_getattr(self,class_type,name):
    if (name == "thisown"): return self.this.own()
    method = class_type.__swig_getmethods__.get(name,None)
    if method: return method(self)
    raise AttributeError,name

def _swig_repr(self):
    try: strthis = "proxy of " + self.this.__repr__()
    except: strthis = ""
    return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)

import types
try:
    _object = types.ObjectType
    _newclass = 1
except AttributeError:
    class _object : pass
    _newclass = 0
del types


def _swig_setattr_nondynamic_method(set):
    def set_attr(self,name,value):
        if (name == "thisown"): return self.this.own(value)
        if hasattr(self,name) or (name == "this"):
            set(self,name,value)
        else:
            raise AttributeError("You cannot add attributes to %s" % self)
    return set_attr


import _core
wx = _core 
__docfilter__ = wx.__DocFilter(globals()) 
#---------------------------------------------------------------------------

class CLSID(object):
    """
    This class wraps the Windows CLSID structure and is used to
    specify the class of the ActiveX object that is to be created.  A
    CLSID can be constructed from either a ProgID string, (such as
    'WordPad.Document.1') or a classID string, (such as
    '{CA8A9783-280D-11CF-A24D-444553540000}').
    """
    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
    __repr__ = _swig_repr
    def __init__(self, *args, **kwargs): 
        """
        __init__(self, String id) -> CLSID

        This class wraps the Windows CLSID structure and is used to
        specify the class of the ActiveX object that is to be created.  A
        CLSID can be constructed from either a ProgID string, (such as
        'WordPad.Document.1') or a classID string, (such as
        '{CA8A9783-280D-11CF-A24D-444553540000}').
        """
        _activex.CLSID_swiginit(self,_activex.new_CLSID(*args, **kwargs))
    __swig_destroy__ = _activex.delete_CLSID
    __del__ = lambda self : None;
    def GetCLSIDString(*args, **kwargs):
        """GetCLSIDString(self) -> String"""
        return _activex.CLSID_GetCLSIDString(*args, **kwargs)

    def GetProgIDString(*args, **kwargs):
        """GetProgIDString(self) -> String"""
        return _activex.CLSID_GetProgIDString(*args, **kwargs)

    def __str__(self):   return self.GetCLSIDString() 
_activex.CLSID_swigregister(CLSID)

#---------------------------------------------------------------------------

class ParamX(object):
    """Proxy of C++ ParamX class"""
    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
    def __init__(self): raise AttributeError, "No constructor defined"
    __repr__ = _swig_repr
    flags = property(_activex.ParamX_flags_get)
    isPtr = property(_activex.ParamX_isPtr_get)
    isSafeArray = property(_activex.ParamX_isSafeArray_get)
    isOptional = property(_activex.ParamX_isOptional_get)
    vt = property(_activex.ParamX_vt_get)
    name = property(_activex.ParamX_name_get)
    vt_type = property(_activex.ParamX_vt_type_get)

    isIn = property(_activex.ParamX_IsIn)

    isOut = property(_activex.ParamX_IsOut)

    isRetVal = property(_activex.ParamX_IsRetVal)

_activex.ParamX_swigregister(ParamX)

class FuncX(object):
    """Proxy of C++ FuncX class"""
    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
    def __init__(self): raise AttributeError, "No constructor defined"
    __repr__ = _swig_repr
    name = property(_activex.FuncX_name_get)
    memid = property(_activex.FuncX_memid_get)
    hasOut = property(_activex.FuncX_hasOut_get)
    retType = property(_activex.FuncX_retType_get)
    params = property(_activex.FuncX_params_get)
_activex.FuncX_swigregister(FuncX)

class PropX(object):
    """Proxy of C++ PropX class"""
    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
    def __init__(self): raise AttributeError, "No constructor defined"
    __repr__ = _swig_repr
    name = property(_activex.PropX_name_get)
    memid = property(_activex.PropX_memid_get)
    type = property(_activex.PropX_type_get)
    arg = property(_activex.PropX_arg_get)
    putByRef = property(_activex.PropX_putByRef_get)
    canGet = property(_activex.PropX_CanGet)

    canSet = property(_activex.PropX_CanSet)

_activex.PropX_swigregister(PropX)

class ParamXArray(object):
    """Proxy of C++ ParamXArray class"""
    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
    def __init__(self): raise AttributeError, "No constructor defined"
    __repr__ = _swig_repr
    def __nonzero__(*args, **kwargs):
        """__nonzero__(self) -> bool"""
        return _activex.ParamXArray___nonzero__(*args, **kwargs)

    def __len__(*args, **kwargs):
        """__len__(self) -> int"""
        return _activex.ParamXArray___len__(*args, **kwargs)

    def __getitem__(*args, **kwargs):
        """__getitem__(self, int idx) -> ParamX"""
        return _activex.ParamXArray___getitem__(*args, **kwargs)

_activex.ParamXArray_swigregister(ParamXArray)

class FuncXArray(object):
    """Proxy of C++ FuncXArray class"""
    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
    def __init__(self): raise AttributeError, "No constructor defined"
    __repr__ = _swig_repr
    def __nonzero__(*args, **kwargs):
        """__nonzero__(self) -> bool"""
        return _activex.FuncXArray___nonzero__(*args, **kwargs)

    def __len__(*args, **kwargs):
        """__len__(self) -> int"""
        return _activex.FuncXArray___len__(*args, **kwargs)

    def __getitem__(*args, **kwargs):
        """__getitem__(self, int idx) -> FuncX"""
        return _activex.FuncXArray___getitem__(*args, **kwargs)

_activex.FuncXArray_swigregister(FuncXArray)

class PropXArray(object):
    """Proxy of C++ PropXArray class"""
    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
    def __init__(self): raise AttributeError, "No constructor defined"
    __repr__ = _swig_repr
    def __nonzero__(*args, **kwargs):
        """__nonzero__(self) -> bool"""
        return _activex.PropXArray___nonzero__(*args, **kwargs)

    def __len__(*args, **kwargs):
        """__len__(self) -> int"""
        return _activex.PropXArray___len__(*args, **kwargs)

    def __getitem__(*args, **kwargs):
        """__getitem__(self, int idx) -> PropX"""
        return _activex.PropXArray___getitem__(*args, **kwargs)

_activex.PropXArray_swigregister(PropXArray)

#---------------------------------------------------------------------------

class ActiveXWindow(_core.Window):
    """
    ActiveXWindow derives from wxWindow and the constructor accepts a
    CLSID for the ActiveX Control that should be created.  The
    ActiveXWindow class simply adds methods that allow you to query
    some of the TypeInfo exposed by the ActiveX object, and also to
    get/set properties or call methods by name.  The Python
    implementation automatically handles converting parameters and
    return values to/from the types expected by the ActiveX code as
    specified by the TypeInfo.

    """
    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
    __repr__ = _swig_repr
    def __init__(self, *args, **kwargs): 
        """
        __init__(self, Window parent, CLSID clsId, int id=-1, Point pos=DefaultPosition, 
            Size size=DefaultSize, long style=0, 
            String name=PanelNameStr) -> ActiveXWindow

        Creates an ActiveX control from the clsID given and makes it act
        as much like a regular wx.Window as possible.
        """
        _activex.ActiveXWindow_swiginit(self,_activex.new_ActiveXWindow(*args, **kwargs))
        self._setOORInfo(self)

    def GetCLSID(*args, **kwargs):
        """
        GetCLSID(self) -> CLSID

        Return the CLSID used to construct this ActiveX window
        """
        return _activex.ActiveXWindow_GetCLSID(*args, **kwargs)

    def GetAXEventCount(*args, **kwargs):
        """
        GetAXEventCount(self) -> int

        Number of events defined for this control
        """
        return _activex.ActiveXWindow_GetAXEventCount(*args, **kwargs)

    def GetAXEventDesc(*args, **kwargs):
        """
        GetAXEventDesc(self, int idx) -> FuncX

        Returns event description by index
        """
        return _activex.ActiveXWindow_GetAXEventDesc(*args, **kwargs)

    def GetAXPropCount(*args, **kwargs):
        """
        GetAXPropCount(self) -> int

        Number of properties defined for this control
        """
        return _activex.ActiveXWindow_GetAXPropCount(*args, **kwargs)

    def GetAXPropDesc(*args):
        """
        GetAXPropDesc(self, int idx) -> PropX
        GetAXPropDesc(self, String name) -> PropX
        """
        return _activex.ActiveXWindow_GetAXPropDesc(*args)

    def GetAXMethodCount(*args, **kwargs):
        """
        GetAXMethodCount(self) -> int

        Number of methods defined for this control
        """
        return _activex.ActiveXWindow_GetAXMethodCount(*args, **kwargs)

    def GetAXMethodDesc(*args):
        """
        GetAXMethodDesc(self, int idx) -> FuncX
        GetAXMethodDesc(self, String name) -> FuncX
        """
        return _activex.ActiveXWindow_GetAXMethodDesc(*args)

    def GetAXEvents(*args, **kwargs):
        """
        GetAXEvents(self) -> FuncXArray

        Returns a sequence of FuncX objects describing the events
        available for this ActiveX object.
        """
        return _activex.ActiveXWindow_GetAXEvents(*args, **kwargs)

    def GetAXMethods(*args, **kwargs):
        """
        GetAXMethods(self) -> FuncXArray

        Returns a sequence of FuncX objects describing the methods
        available for this ActiveX object.
        """
        return _activex.ActiveXWindow_GetAXMethods(*args, **kwargs)

    def GetAXProperties(*args, **kwargs):
        """
        GetAXProperties(self) -> PropXArray

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -