Re: [pywin32-bugs] Makepy doesnt work correct
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
|
From: Bob G. <bg...@al...> - 2004-09-06 20:05:18
|
At 07:49 AM 9/6/2004, Karakus, Ecevit wrote:
>Hello Programmers,
>
>I need your Support for this Problem: Makepy doesn't work correct
>
>Please Look at this Coding:
>
>This Works !!!!!!
>______________________________________
>import win32com.client
>xneu= win32com.client.GetObject("SAPGUI")
>script = xneu.GetScriptingEngine
>Connection = script.Children(0)
>Session = Connection.Children(0) <-------
>
>______________________________________
>
>After Using Makepy for the OCX
>
>___________________
>
> if d is not None: return getattr(d, attr)
> File
> "C:\Prog\Python\ActPython23\Lib\site-packages\win32com\client\__init__.py"
> , line 454, in __getattr__
> raise AttributeError, "'%s' object has no attribute '%s'" %
> (repr(self), attr)
>AttributeError: '<win32com.gen_py.SAP Scripting
>Control.ISapComponentTarget instance at 0x19183176>' object has no
>attribute 'Children'
Before mapeky attributes are case insensitive. After makepy they are case
sensitive. So you might try Connection.children(0)
>_________________________________
>
>The Error is raised in the line
> Session = Connection.Children(0)
>worked correctly before using makepy
>
>I can help myself by deleting the makepy-generated files but this is not
>a solution in this case.
>
>The Problem is that I need Makepy, because I want to use a Event Handler
>for that Com-Object
>and proceed with
> Session_events = win32com.client.DispatchWithEvents(Session,
> SessionEvents)
>But this line generates automatically Makepy-Support
>When I want to use the next time the Coding abov I get the Error.
>
>
>Has some one similar Experiences or a Hint ...
>
>Thanks !!!
>
>
>Ecevit Karakus
>Dipl. - Physiker
>Senior Consultant
>
>~~~~~~~~~~~~~~~~~~~~~~~~~~}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}|||||||||||||||{{{{{{zzzywvqrwwuumWz{{||||||||||}}}}}}}}}}}~~~~~~~~~~~~~~~~~~~~~~~~~
>
>~~~~~~~~~~~~~~~~~~~~~~~}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}||||||||||||||||{{{{{{{zzyyxxwusisvwyyz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}}|||||||{{{{{{{{{{{{{{{zzzzzzyxxwvpG
>J l+ ]svwzz{{{|||}}}}}}}}}}}}}}}~~~~~~
>
>~~~~~~}}}}}}}}}}}}}}}}}}}}}}}}}}}}|||||{{{{{{{{{{{{{{{{{{zzzzzzzyxwtoutpn!
>aptxyzz{{{||||}}}}}}}}}}}}}}}~~~~~
>
>~~~~~}}}}}}}}}}}}}}}}}}}}}}}||||||{{zzzzzzzz{{{{{{{{{zzzzzzzyyyxwkc&@
>g
>^7tvxyyzz{{{||||}}}}}}}}}}}}}}}~~~~
>
>~~~~}}}}}}}}}}}}}}}}}|||||||||{{{zzywrvxyyyyyyyyyyyyyyyyyyyyyxxxvuspPH
>suwwvvz{{|||||}}}}}}}}}}}}}}}~~~
>
>~~~}}}}}}}}}}}|||||||||||||{{{{{zzzyoluvwwwxxxwvdtvwwxxxxxxxxxwuj 4
> gjky{{|||||}}}}}}}}}}}}}}}}~~
>
>~~}}}}}}}|||||||||||||||{{{{{{{{zzyyxwvtp^Np[tusrm]Sslpuvwwwwvvtih
>mqvxyzz{||||||}}}}}}}}}}}}}}}}~
>
>~~}}}}|||||||||||||||{{{{{{{{{{zzyyyxwwsqU h# [
>gkosuuttq^
>Grupyz{{||||||}}}}}}}}}}}}}}}}~
>
>~}}}|||||||||||||||{{{{{{{{{{zzyyyyxtuurnj Yqqqk
> ca[vyz{{|||||||}}}}}}}}}}}}}}}}
>
>~}||||||||||||||{{{{{{{{zzzyxsowwwwvusl ?l
> dvyz{{{|||||||}}}}}}}}}}}}}}}}
>
>~|||||||||||||{zzzzzzzzyyyyxxvtkrsorqnb a
> \xyzz{{{|||||||}}}}}}}}}}}}}}}}
>
>~{{{{{zzzzyxwyyyyyzzyxxxxxvvvirmc c
> 8wxyzz{{{{||||||||}}}}}}}}}}}}}}}
>
>~J@AI=;*54# )74&*
> bptvwxyyzz{{{{||||||||}}}}}}}}}}}}}}}
>
>~{{{{{zzzzyxwyyyyyzzyxxxxxvvvirmc c
> 8wxyzz{{{{||||||||}}}}}}}}}}}}}}}
>
>~|||||||||||||{zzzzzzzzyyyyxxvtkrsorqnb a
> \xyzz{{{|||||||}}}}}}}}}}}}}}}}
>
>~}||||||||||||||{{{{{{{{zzzyxsowwwwvusl ?l
> dvyz{{{|||||||}}}}}}}}}}}}}}}}
>
>~}}}|||||||||||||||{{{{{{{{{{zzyyyyxtuurnj Yqqqk
> ca[vyz{{|||||||}}}}}}}}}}}}}}}}
>
>~~}}}}|||||||||||||||{{{{{{{{{{zzyyyxwwsqU h# [
>gkosuuttq^
>Grupyz{{||||||}}}}}}}}}}}}}}}}~
>
>~~}}}}}}}|||||||||||||||{{{{{{{{zzyyxwvtp^Np[tusrm]Sslpuvwwwwvvtih
>mqvxyzz{||||||}}}}}}}}}}}}}}}}~
>
>~~~}}}}}}}}}}}|||||||||||||{{{{{zzzyoluvwwwxxxwvdtvwwxxxxxxxxxwuj 4
> gjky{{|||||}}}}}}}}}}}}}}}}~~
>
>~~~~}}}}}}}}}}}}}}}}}|||||||||{{{zzywrvxyyyyyyyyyyyyyyyyyyyyyxxxvuspPH
>suwwvvz{{|||||}}}}}}}}}}}}}}}~~~
>
>~~~~~}}}}}}}}}}}}}}}}}}}}}}}||||||{{zzzzzzzz{{{{{{{{{zzzzzzzyyyxwkc&@
>g
>^7tvxyyzz{{{||||}}}}}}}}}}}}}}}~~~~
>
>~~~~~~}}}}}}}}}}}}}}}}}}}}}}}}}}}}|||||{{{{{{{{{{{{{{{{{{zzzzzzzyxwtoutpn!
>aptxyzz{{{||||}}}}}}}}}}}}}}}~~~~~
>
>~~~~~~~}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}|||||||{{{{{{{{{{{{{{{zzzzzzyxxwvpG
>J l+ ]svwzz{{{|||}}}}}}}}}}}}}}}~~~~~~
>
>~~~~~~~~}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}|||||||||{{{{{{{{{{{zzzzzyxvtr>
>Tq f PpUtutpfqqreeqxz{{|||}}}}}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}}}}}}}}}}}}}}}}}}}}}}}}|||||||||||||||{{{{{{zzzywvqrwwuumWz{{||||||||||}}}}}}}}}}}~~~~~~~~~~~~~~~~~~~~~~~~~
>
>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}|||||||||||||{{{{{zzxttuyzzzzz{||||||||||}}}}}}}}}}}~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>5
>
>APRIMUS GmbH
>Weidestrasse 120a
>
>22083 Hamburg
>Germany
>
>Tel. : +49 (40) 2709 53-118
>Fax : +49 (40) 2709 53-218
>Mobil : +49 (170) 412 64 69
>E-Mail : ece...@ap...
>URL : www.aprimus.de
><<http://www.aprimus.de/>http://www.aprimus.de/>
>
>Neue Adresse seit 01.07.2004
>New address since 01. July 2004
>
>
Bob Gailer
bg...@al...
303 442 2625 home
720 938 2625 cell |