Hi Steve,
It works fine for creating in comtypes, but even then when compiling
into an executable even that fails...
Bruce
Sent: Wednesday, January 02, 2013 11:24 AM
Subject: Re: Windoweyes.application In Python
Bruce,
From a python console I entered
import win32com.client
we = win32com.client.Dispatch("WindowEyes.Application")
and got no errors. Do you have the python Win32 extensions installed? If
so, what do you get in response to your attempt to create a WE object?
Note that for executables generated with Py2exe, PyInstaller, CX Freeze,
etc. you will probably need to generate the Window-Eyes COM interface
beforehand and import it directly since frozen python applications will
run much more predictably if you provide an early-bound module
definition rather than depend on sometimes flaky late-binding in the
Win32com package.
Steve
On 1/2/2013 10:45 AM, BX wrote:
> Hi!
> I have Python2.7 and the create or object for win32 does not work.
> WeTts = win32com.client.Dispatch("WindowEyes.Application")
> The above create does not work, is it because of the version of python?
> I can not create the application inside and executable and this
> fails outside of it when attempting to use this format instead of the
> comtypes import which the create fails only inside an executable of
> python...
>
> Bruce
>
--
Stephen Clower
Product support specialist & App Development
GW Micro, Inc. * 725 Airport North Office Park, Fort Wayne, IN 46825
260-489-3671 * gwmicro.com