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
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,
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
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
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
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(
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
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
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