[IronPython] Data binding - how?

2006-12-02 Thread Patrick O'Brien
For the life of me I can't successfully bind a list of class instances to a data grid view. I get the grid, with the correct column headers and correct number of rows, but the cells are all empty. Below is my most sophisticated attempt. Any pointers would be greatly appreciated. import clr im

[IronPython] Possible problem with DockStyle.Fill

2006-12-02 Thread Patrick O'Brien
I've either found a bug or a misunderstanding on my part. I'd appreciate confirmation or either. :-) Running this bit of code the layout of the form appears as expected: import clr clr.AddReference('System.Windows.Forms') import System.Windows.Forms as SWF form = SWF.Form() menu_strip = SWF.M

Re: [IronPython] unicode object type

2006-12-02 Thread Sylvain Hellegouarch
Fredrik Lundh wrote: > Sylvain Hellegouarch wrote: > >> I can understand why IP or JYthon uses the same type but then the >> results don't seem to be consistent with CPython. I might misunderstand >> something here. Alternatively I assume using 'is' implies such issues. > > you're confusing CPyth

Re: [IronPython] unicode object type

2006-12-02 Thread Sylvain Hellegouarch
Fredrik Lundh wrote: > Sylvain Hellegouarch wrote: > >> I can understand why IP or JYthon uses the same type but then the >> results don't seem to be consistent with CPython. I might misunderstand >> something here. Alternatively I assume using 'is' implies such issues. > > you're confusing CPyth

Re: [IronPython] unicode object type

2006-12-02 Thread Fredrik Lundh
Sylvain Hellegouarch wrote: > I can understand why IP or JYthon uses the same type but then the > results don't seem to be consistent with CPython. I might misunderstand > something here. Alternatively I assume using 'is' implies such issues. you're confusing CPython implementation details with t

Re: [IronPython] unicode object type

2006-12-02 Thread Sylvain Hellegouarch
Sylvain Hellegouarch wrote: > Fredrik Lundh wrote: >> Sylvain Hellegouarch wrote: >> >>> Is this the correct behavior? >> yes. a Python implementation is not required to have a distinct Unicode >> string type; see: >> >> http://jython.sourceforge.net/docs/differences.html >> >> > > OK. Thank