[pywin32-bugs] Makepy doesnt work correct
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Karakus, E. <Ece...@ap...> - 2004-09-06 13:49:39
|
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=3D win32com.client.GetObject("SAPGUI") script =3D xneu.GetScriptingEngine Connection =3D script.Children(0) Session =3D 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' _________________________________ The Error is raised in the line=20 Session =3D Connection.Children(0) =20 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 =3D 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. =20 Has some one similar Experiences or a Hint ... Thanks !!! =20 Ecevit Karakus Dipl. - Physiker Senior Consultant=20 ~~~~~~~~~~~~~~~~~~~~~~~~~~}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}|||||||= |||| ||||{{{{{{zzzywvqrwwuumWz{{||||||||||}}}}}}}}}}}~~~~~~~~~~~~~~~~~~~~~~~~~= ~~~~~~~~~~~~~~~~~~~~~~~}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}||||||||||= |||| ||{{{{{{{zzyyxxwusisvwyyzz{{{|||||||||||}}}}}}}}}}}~~~~~~~~~~~~~~~~~~~~~~= ~~~~~~~~~~~~~~~~~~~~}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}|||||||||||||= |||| {{{{{{{zzyyxwwmooahqjwxxyzz{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yzz{{{||||}}}}}}}}}}}}}}}~~~~~ ~~~~~}}}}}}}}}}}}}}}}}}}}}}}||||||{{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=3D;*54# )74&* bptvwxyyzz{{{{||||||||}}}}}}}}}}}}}}} ~{{{{{zzzzyxwyyyyyzzyxxxxxvvvirmc c 8wxyzz{{{{||||||||}}}}}}}}}}}}}}} ~|||||||||||||{zzzzzzzzyyyyxxvtkrsorqnb a \xyzz{{{|||||||}}}}}}}}}}}}}}}} ~}||||||||||||||{{{{{{{{zzzyxsowwwwvusl ?l dvyz{{{|||||||}}}}}}}}}}}}}}}} ~}}}|||||||||||||||{{{{{{{{{{zzyyyyxtuurnj Yqqqk ca[vyz{{|||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 = nsuvwwwwxyyzzzzzzyxrz{{||||}}}}}}}}}}}}}~~~~~~~~~~~ ~~~~~~~~~~~~~}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}||||||||||||||||{{{{zz= zzzz zzyyyyxxwup=3D = D^twxyyyzzzzz{{{{{{{|||||}}}}}}}}}}}}}}~~~~~~~~~~~~ ~~~~~~~~~~~~~~~}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}|||||||||||||||||{{= {{{z zzzzzyyxxvtn = K/ntwyyzz{{{{{{{{{|||||||}}}}}}}}}}}}}~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}||||||||||||||||= ||{{ {{{{zzzyus`kqq[i[ = hptupixzz{{{{{{{|||||||||}}}}}}}}}}}}~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}|||||||||||||= |||| {{{{{{{zzyyxwwmooahqjwxxyzz{{{{{||||||||||}}}}}}}}}}}}~~~~~~~~~~~~~~~~~~~= ~~~~~~~~~~~~~~~~~~~~~~~}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}||||||||||= |||| ||{{{{{{{zzyyxxwusisvwyyzz{{{|||||||||||}}}}}}}}}}}~~~~~~~~~~~~~~~~~~~~~~= ~~~~~~~~~~~~~~~~~~~~~~~~~~}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}|||||||= |||| ||||{{{{{{zzzywvqrwwuumWz{{||||||||||}}}}}}}}}}}~~~~~~~~~~~~~~~~~~~~~~~~~= ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}|||= |||| ||||||{{{{{zzxttuyzzzzz{||||||||||}}}}}}}}}}}~~~~~~~~~~~~~~~~~~~~~~~~~~~~= 5 APRIMUS GmbH =20 Weidestrasse 120a 22083 Hamburg Germany =20 Tel. : +49 (40) 2709 53-118 Fax : +49 (40) 2709 53-218 Mobil : +49 (170) 412 64 69=20 E-Mail : ece...@ap... URL : www.aprimus.de <http://www.aprimus.de/> Neue Adresse seit 01.07.2004 New address since 01. July 2004 |