import clr clr.AddReference("System.Windows.Forms") clr.AddReference("System.Drawing") from System.Windows import Forms from System import Drawing class HelloForm(Forms.Form): def __init__(self): self.Size = Drawing.Size( 640, 480 ) self.Text = 'Hello, World!' label1 = Forms.Label() label1.Size = Drawing.Size( 320, 20 ) label1.Text = 'Hello, Windows Forms(IronPython) World!' self.Controls.Add( label1 ) if __name__ == '__main__': form = HelloForm() Forms.Application.Run(form)