[IronPython] Overloading OnPaint etc.

2005-04-25 Thread Kirk Olynyk
Under C#, you can overload OnPaint on a class derived from Form and then it will automatically be called upon the paint event. I find that under IronPython that I am forced to explicitly add the OnPaint method to the paint message handler list. Is this by design?   import sys sys.LoadAss

[IronPython] Accessing Microsoft.Win32

2005-05-03 Thread Kirk Olynyk
I have tried everything that I can think of to access the Microsoft.Win32 assembly, but I can’t seem to get it. What is the canonical way of accomplishing this?   Kirk ___ users-ironpython.com mailing list users-ironpython.com@lists.ironpy

[IronPython] Array Access Problem

2005-05-05 Thread Kirk Olynyk
I can’t seem to change the members of an array. Is this a known problem?   import sys   sys.LoadAssemblyByName("System") sys.LoadAssemblyByName("System.Drawing")   from System import* from System.Drawing import *   apt = Array.CreateInstance(Point, 1) apt[0] = Point(1,2) print a

[IronPython] Trouble with Single's

2005-05-15 Thread Kirk Olynyk
It seems that IronPython is comfortable with double data types but not single’s. To get around this I am forced to to a Convert.ToDouble(singleThingy) every time that I find one. Is there a plan to fix this?       import sys   sys.LoadAssemblyByName("System") sys.LoadAssemblyByName("

[IronPython] Trouble building 0.7.5

2005-05-18 Thread Kirk Olynyk
I encounter an error when building 0.7.5 (earlier version build fine)   'IronPython.Objects.Dict.IEnumerable.GetEnumerator()': containing type does not implement interface 'System.Collections.IEnumerable’’; File:Dict.cs; Line: 189 'IronPython.Objects.CustomDict.IEnumerable.GetEnumerator(

[IronPython] Nested Functions

2005-09-28 Thread Kirk Olynyk
# This works on CPython but not on IronPython 9.2   def f (i):     def g ():     return i+1     return g() print f(3) ___ users-ironpython.com mailing list users-ironpython.com@lists.ironpython.com http://lists.ironpython.com/listi