[IronPython] Binding a Python class to a DataGridView

2010-02-24 Thread David McWright
I'm working with DataGridView in IPY2.6.1 and I'm having trouble with a couple of things. I found a closed issue on the CodePlex here: http://www.codeplex.com/IronPython/WorkItem/View.aspx?WorkItemId=6332 and used it as a platform to experiment. I've attached the code to this post below. Howev

Re: [IronPython] A good dotNET gui designer, plus IronPython VS2008 integration?

2010-02-02 Thread David McWright
Normally, I haven't had much trouble with #Develop not displaying the form so long as I limit my edits to InitializeComponent to either event hookups or properties of the visual elements. Everything else, I keep in separate methods or another class altogether and that seems to keep the designer ha

Re: [IronPython] Calling a System DLL In IronPython?

2010-01-23 Thread David McWright
Is there a reference somewhere for PInvoke or ctypes in IP? TIA, David On Jan 23, 7:31 pm, Michael Foord wrote: > On 24/01/2010 00:19, Andrew Evans wrote: > > > I am trying to call user32.dll into IronPython how do I do this? Do I > > use clr.AddReference, that doesn't seem to do it. > > clr.Add

Re: [IronPython] Error Iterating

2010-01-21 Thread David McWright
Message- > From: users-boun...@lists.ironpython.com > [mailto:users-boun...@lists.ironpython.com] On Behalf Of David McWright > Sent: Thursday, January 21, 2010 7:44 PM > To: us...@lists.ironpython.com > Subject: [IronPython] Error Iterating > > Hello All, >    I'm working

[IronPython] Error Iterating

2010-01-21 Thread David McWright
Hello All, I'm working through a book and one of the exercise involves building comboBox filled with the names of the installed FontFamilies. The code and error are: >>> import clr >>> clr.AddReference("System.Drawing") >>> from System.Drawing.Text import InstalledFontCollection >>> for f in I

Re: [IronPython] How to convert from byte[] to str ?

2009-12-18 Thread David McWright
Dino, Is there somewhere I can find a reference for the other helpers in PythonOps? Thanks, David On Dec 17, 9:33 pm, Dino Viehland wrote: > We have helpers in PythonOps called MakeByteArray and MakeString which > do the conversion.  To use these from Python you can do: > > import clr > clr.A