ironpython error

  • Python

    ironpython error

    hallo,
    ich habe dieses script:

    Quellcode

    1. from Core.UI import *
    2. from Core.Tools import *
    3. def OnLoad()
    4. root = Root()
    5. root.Text = "ff"
    6. text = Control("text",Point(100,100),Size(20,200))
    7. t = text.Build()
    8. root.Controls.Add(t)
    9. root.Show()


    und ich nutze runtime.UseFile(Filename)

    es kommt der Fehler: unexpected token '<newline>'

    was habe ich falsch gemacht?