Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(10)  |  Call(6)  |  Derive(0)  |  Import(4)

src/c/o/comtypes-1.0.0/comtypes/test/test_comserver.py   comtypes(Download)
from comtypes.client import CreateObject, GetEvents, ShowEvents
from comtypes.server.register import register#, unregister
from comtypes.test import is_resource_enabled
from comtypes.test.find_memleak import find_memleak
 
        self.failUnlessEqual(pb[0], name)
 
    if is_resource_enabled("memleaks"):
        def test_get_id(self):
            obj = self.create_object()
            self._find_memleak(func)
 
if is_resource_enabled("ui"):
    class TestLocalServer(TestInproc):
        def create_object(self):
            pass
 
    if is_resource_enabled("ui"):
        class TestLocalServer_win32com(TestInproc_win32com):
            def create_object(self):
        # crashes elsewhere.  Is there s problem with SAFEARRAYs?
 
    if is_resource_enabled("CRASHES"):
        def Fails(self):
            '''

src/c/o/comtypes-1.0.0/comtypes/test/test_dispinterface.py   comtypes(Download)
import unittest
 
from comtypes.server.register import register#, unregister
from comtypes.test import is_resource_enabled
 
class Test(unittest.TestCase):
 
    if is_resource_enabled("pythoncom"):
        def test_win32com(self):
            # EnsureDispatch is case-sensitive

src/c/o/comtypes-1.0.0/comtypes/test/test_safearray.py   comtypes(Download)
from comtypes.test.find_memleak import find_memleak
from comtypes import BSTR, IUnknown
from comtypes.test import is_resource_enabled, get_numpy
import array
 
 
 
if is_resource_enabled("pythoncom"):
    try:
        import pythoncom

src/c/o/comtypes-1.0.0/comtypes/test/test_variant.py   comtypes(Download)
from comtypes.automation import BSTR, VT_BSTR, VT_DATE
from comtypes.typeinfo import LoadTypeLibEx, LoadRegTypeLib
from comtypes.test import is_resource_enabled, get_numpy
 
def get_refcnt(comptr):