Re: [IronPython] Running applications vs. forms?

2006-06-17 Thread Martin Maly
import clr clr.AddReference('System.Windows.Forms') clr.AddReference('System.Drawing') from System.Windows.Forms import Form,Application class Form1(Form):     pass class Form2(Form):     pass Application.Run(Form1())   From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Beha

Re: [IronPython] Running applications vs. forms?

2006-06-17 Thread Nathan R. Ernst
The object you pass to Application.Run should derive from Form, not Application.  In your example below, you should eliminate the class MyApp and pass either Form1 or Form2. -Nathan   From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of jeff sacksteder Sent: Saturday,

[IronPython] Running applications vs. forms?

2006-06-17 Thread jeff sacksteder
To clarify my earlier message-If I want to create a non-trivial application, I will have several forms and dialogs. My(apparently broken) understanding is that I would create a class representing the application and pass that to the Application.Run(method).  For example, the tiny app here:import c

[IronPython] Freshmeat

2006-06-17 Thread Sanghyeon Seo
I updated Freshmeat entry for IronPython to point to CodePlex now. http://freshmeat.net/projects/ironpython I wonder how can I update the release? Seo Sanghyeon ___ users mailing list users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/u

Re: [IronPython] Choosing the right overload

2006-06-17 Thread J. Merrill
Never mind, it seems that there's been work done in this area At 12:28 PM 6/17/2006, J. Merrill wrote (in part) >If that's the case, then it's possible that the design of __overloads__ needs >to be changed -- the current key defn of "tuple of types without indication of >out-or-ref" may not

Re: [IronPython] Choosing the right overload

2006-06-17 Thread J. Merrill
I'm glad this works, and sorry that I hadn't read the mail where you said you'd figured it out. At 12:52 PM 6/17/2006, J. Merrill wrote >Try adding .MakeByRefType() to what you have: > Direct3D.Mesh.FromFile.__overloads__[(str, Direct3D.MeshFlags, Direct3D.Device, clr.GetClrType(

Re: [IronPython] Choosing the right overload

2006-06-17 Thread J. Merrill
Try adding .MakeByRefType() to what you have: >>> Direct3D.Mesh.FromFile.__overloads__[(str, Direct3D.MeshFlags, >>> Direct3D.Device, >>> clr.GetClrType(Direct3D.ExtendedMaterial).MakeArrayType().MakeByRefType())] Another possibility would be to display the elements of __overloads__ explicitly

[IronPython] Application objects

2006-06-17 Thread jeff sacksteder
Given the general lack of IP example code, could someone post a simple example of an application that contains multiple forms or dialogs? ___ users mailing list users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Re: [IronPython] Choosing the right overload

2006-06-17 Thread J. Merrill
At 01:21 PM 6/16/2006, Jonathan Jacobs wrote (in part) >J. Merrill wrote: (in part) >> I don't know if C# allows overloads that are identical except for out-ness >> -- can you have both >>int Foo(string x, out int blah) >>and int Foo(string x, int blah) ??? > >Apparently you can. If tha