This code is IronPython!
Won't work with CPython.
IronPython - Hello World
import clr clr.AddReference('System.Windows.Forms') from System.Windows.Forms import Application, Form, Label form = Form(Text="Hello World Form") label = Label(Text="Hello World!") form.Controls.Add(label) Application.Run(form)
This post moved from Python GUI Programming sticky thread.
Please follow the rules of this thread and don't clutter it with questions!
Start your own thread and title it "IronPython Question" or something.