[Python.NET] Cast PyObject to RoutedEventHandler

WARD Steve Steve.Ward at oxinst.com
Tue Jun 19 11:37:42 EDT 2018


Can anyone tell me how to cast or Convert (or use a TryGet, or As whatever...), a PyObject (a Python function), to a C# RoutedEventHandler?

The Python function:

def OnStartButton(sender,args):
    #do stuff
    pass

Thanks
Steve
___________________________________________________________________________
This e-mail is confidential and is for the addressee only.   Please refer to
www.oxinst.com/email-statement<http://www.oxinst.com/email-statement> for regulatory information.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pythondotnet/attachments/20180619/151a58df/attachment.html>


More information about the PythonDotNet mailing list