![](https://secure.gravatar.com/avatar/1b0e722a4823f29c56d7a97bc6500ccc.jpg?s=120&d=mm&r=g)
Have you tried @clrmethod decorator? https://github.com/pythonnet/pythonnet/blob/master/src/runtime/resources/clr... https://github.com/pythonnet/pythonnet/blob/master/src/tests/test_clrmethod.... On Tue, Jun 19, 2018 at 10:37 AM, WARD Steve <Steve.Ward@oxinst.com> wrote:
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 for regulatory information.
_________________________________________________ Python.NET mailing list - PythonDotNet@python.org https://mail.python.org/mailman/listinfo/pythondotnet