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

All Samples(25)  |  Call(17)  |  Derive(0)  |  Import(8)

src/p/y/pygtknotebook-HEAD/examples/browsers/ie_in_gtk.py   pygtknotebook(Download)
from comtypes import IUnknown
from comtypes.automation import IDispatch, VARIANT
from comtypes.client import wrap
 
kernel32 = windll.kernel32
        atl.AtlAxGetControl(self.atlAxWinHwnd, byref(pBrowserUnk))
        # the wrap call querys for the default interface
        self.pBrowser = wrap(pBrowserUnk)
 
        # Create a Gtk window that refers to the native AtlAxWin window.

src/p/y/pygtknotebook-HEAD/examples/browsers/ie_and_mozilla_embed.py   pygtknotebook(Download)
    from comtypes import IUnknown
    from comtypes.automation import IDispatch, VARIANT
    from comtypes.client import wrap
 
    kernel32 = windll.kernel32
        atl.AtlAxGetControl(self.atlAxWinHwnd, byref(pBrowserUnk))
        # the wrap call querys for the default interface
        self.browser = wrap(pBrowserUnk)
 
        # Create a Gtk window that refers to the native AtlAxWin window.

src/p/y/pygtknotebook-HEAD/examples/browsers/cleaned_ie_in_gtk.py   pygtknotebook(Download)
from comtypes import IUnknown
from comtypes.automation import IDispatch, VARIANT
from comtypes.client import wrap
 
kernel32 = windll.kernel32
        atl.AtlAxGetControl(self.atlAxWinHwnd, byref(pBrowserUnk))
        # the wrap call querys for the default interface
        self.browser = wrap(pBrowserUnk)
 
        # Create a Gtk window that refers to the native AtlAxWin window.

src/p/y/pyjx-0.1.3/pyjs/runners/mshtml.py   pyjx(Download)
from comtypes import IUnknown, GUID, COMMETHOD, CoCreateInstanceEx
from comtypes.automation import IDispatch, VARIANT
from comtypes.client import wrap, GetModule
from comtypes.client.dynamic import Dispatch
 
        atl.AtlAxGetControl(self.hwnd, byref(self.pBrowserUnk))
        # the wrap call querys for the default interface
        self.pBrowser = wrap(self.pBrowserUnk)
        self.pBrowser.RegisterAsBrowser = True
        self.pBrowser.AddRef()
        # http://msdn.microsoft.com/en-us/library/aa752126%28VS.85%29.aspx
        wba = self.pBrowser.QueryInterface(IServiceProvider)
        wn = wrap(wba.QueryService(SID_SShellBrowser, IOleWindow))
 
        hwnd = c_void_p(0)

src/p/y/pyjs-HEAD/pyjs/runners/mshtml.py   pyjs(Download)
from comtypes import IUnknown, GUID, COMMETHOD, CoCreateInstanceEx
from comtypes.automation import IDispatch, VARIANT
from comtypes.client import wrap, GetModule
from comtypes.client.dynamic import Dispatch
 
        atl.AtlAxGetControl(self.hwnd, byref(self.pBrowserUnk))
        # the wrap call querys for the default interface
        self.pBrowser = wrap(self.pBrowserUnk)
        self.pBrowser.RegisterAsBrowser = True
        self.pBrowser.AddRef()
        # http://msdn.microsoft.com/en-us/library/aa752126%28VS.85%29.aspx
        wba = self.pBrowser.QueryInterface(IServiceProvider)
        wn = wrap(wba.QueryService(SID_SShellBrowser, IOleWindow))
 
        hwnd = c_void_p(0)

src/p/y/pyjx-0.1.3/pyjs/runners/mshtmlevents.py   pyjx(Download)
import comtypes.typeinfo
import comtypes.connectionpoints
from comtypes.client import wrap
from comtypes.client.dynamic import Dispatch
from comtypes.gen import MSHTML
        event = None
        if len(args) > 0:
            event = wrap(args[0])
        try:
            result = mth(self.sender, event, None)

src/p/y/pyjs-HEAD/pyjs/runners/mshtmlevents.py   pyjs(Download)
import comtypes.typeinfo
import comtypes.connectionpoints
from comtypes.client import wrap
from comtypes.client.dynamic import Dispatch
from comtypes.gen import MSHTML
        event = None
        if len(args) > 0:
            event = wrap(args[0])
        try:
            result = mth(self.sender, event, None)

src/c/o/comtypes-1.0.0/comtypes/test/test_server.py   comtypes(Download)
################################################################
import comtypes
from comtypes.client import wrap
 
tlb = TypeLib("[uuid(f4f74946-4546-44bd-a073-9ea6f9fe78cb)] library TestLib")
    def test_Name(self):
        p = wrap(self.create())
        self.assertEqual((p.Name, p.name, p.nAME), ("foo",) * 3)
        p.NAME = "spam"
        self.assertEqual((p.Name, p.name, p.nAME), ("spam",) * 3)
    def test_MixedInOut(self):
        p = wrap(self.create())
        self.assertEqual(p.MixedInOut(1, 2), (2, 3))
 
    ################
    def test_MultiInOutArgs(self):
        p = wrap(self.create())
        self.assertEqual(p.MultiInOutArgs(1, 2), (3, 8))
 
    ################
    def test_MultiInOutArgs3(self):
        p = wrap(self.create())
        self.assertEqual(p.MultiInOutArgs3(), (42, 43))
 
    ################