Interface with IronPython, how?

Hello,

I try to do one step more, is there a library missing or an OUT ?

import sys
import clr
clr.AddReference('System.Windows.Form')
clr.AddReference('System.Drawing')
from System.Windows.Forms import Application, Button, Form
from System.Drawing import Point
x = 0
y = 0
form = Form()
form.Text = "Hello World"

or is there a syntex error? :confused:

KR

Andreas

should be clr.AddReference('System.Windows.Form')

1 Like

No I corrected … it does not work
I have it from a IronPython book - somebody recomendet it to me to look at at that
I use 2.0.4 Dynamo

should be β€˜forms’ actually :slight_smile:

1 Like

Oh man! but look
i add this
OUT = form

Without out i got nothing :confused:

should there be a window? anywhere with a text

I think you should add:

form.Show()

2 Likes

thats pur magic! Thank you ! I`ll be back :slight_smile: