Re: [Python.NET] -|EXT|- Re: Cast PyObject to RoutedEventHandler

2018-06-21 Thread WARD Steve
/src/tests/test_clrmethod.py#L14 On Tue, Jun 19, 2018 at 10:37 AM, WARD Steve mailto:steve.w...@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(sende

[Python.NET] Cast PyObject to RoutedEventHandler

2018-06-19 Thread WARD Steve
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 __

[Python.NET] PyScope in Python.NET

2017-06-27 Thread WARD Steve
Hi Denis, I've had to stop development for now because PyScope global variables don't seem to be working in similar fashion to IronPython. I want a global variable assigned at start-up with PyScope.Set(name,value), where value is most likely a .NET object, to be available later on in any module

Re: [Python.NET] -|EXT|- Re: PyScope

2017-06-27 Thread WARD Steve
Update: Mixed mode is working – clearly I hadn’t worked through all the combinations ☺. I would like to get Python-only working, but hey. Thanks Steve From: PythonDotNet [mailto:pythondotnet-bounces+steve.ward=oxinst@python.org] On Behalf Of WARD Steve Sent: 26 June 2017 16:05 To: A list

Re: [Python.NET] -|EXT|- Re: PyScope

2017-06-26 Thread WARD Steve
by setup.py during build from the Python side. From VS side you have to resolve all these symbols manually. And the latter is really intended only for developers of pythonnet. Thanks, Denis On Fri, Jun 23, 2017, 6:10 AM WARD Steve mailto:steve.w...@oxinst.com>> wrote: Unable to debug into embe

Re: [Python.NET] -|EXT|- Re: PyScope

2017-06-23 Thread WARD Steve
Unicode errors. Any ideas? Thanks, Steve From: WARD Steve Sent: 21 June 2017 12:06 To: 'A list for users and developers of Python for .NET' Subject: RE: [Python.NET] -|EXT|- Re: PyScope Hi Denis, Initial feedback is that it works. Had to change to UCS2 (PYTHON27 already), I am going w

Re: [Python.NET] -|EXT|- Re: PyScope

2017-06-21 Thread WARD Steve
ted packages: pythonnet Found existing installation: pythonnet 2.2.2 Uninstalling pythonnet-2.2.2: Successfully uninstalled pythonnet-2.2.2 Running setup.py install for pythonnet ... done Successfully installed pythonnet-2.4.0.dev0 Thanks, Denis On Fri, Apr 28, 2017, 5:58 AM WARD Steve ma

Re: [Python.NET] -|EXT|- Re: PyScope

2017-04-28 Thread WARD Steve
, Denis On Wed, Apr 26, 2017, 9:28 AM WARD Steve mailto:steve.w...@oxinst.com>> wrote: Hi, I’m keen to use the PyScope class as I’m working to replace an IronPython interactive scripting environment in a .NET application. I read about this feature here: https://github.com/pythonnet/pythonnet/pu

[Python.NET] PyScope

2017-04-26 Thread WARD Steve
to create something similar to a scope with the current release 2.3.0? Thanks Steve Ward Steve Ward Senior Software Engineer Oxford Instruments ___This e-mail is confidential and is for the addressee only. Pleas