Hi..
I can't speak english very well.
I have writting code a program with VB & Python
- COM Server : Visual basic (ActiveX EXE)
- COM Client : Python
I expect to attempt that is retrieved a return value.
but, don't returned a event value ( in python)
why?
I amd certain to need help.
>>> python source
>>> VB Source : ActvieX Exe (with form(vbmodeless ) & events)
I can't speak english very well.
I have writting code a program with VB & Python
- COM Server : Visual basic (ActiveX EXE)
- COM Client : Python
I expect to attempt that is retrieved a return value.
but, don't returned a event value ( in python)
why?
I amd certain to need help.
>>> python source
Code:
import win32com
class VBEventHandler:
def OnActionButton(self,id):
print "event vbmodeless", id
obj = win32com.client.DispatchWithEvents("VBnM3Test5.WithEventForm",VBEventHandler)
obj.Show()
Code:
Event OnActionButton(ByVal id As Integer)
Private WithEvents Wef As Form1
Private Sub Class_Initialize()
Set Wef = New Form1
End Sub
Public Sub Show()
Wef.Show
End Sub
Private Sub Wef_OnActionButton(ByVal id As Integer)
RaiseEvent OnActionButton(id)
End Sub