Skip to content

Instantly share code, notes, and snippets.

@tmiz
Created December 13, 2011 04:40
Show Gist options
  • Save tmiz/1470619 to your computer and use it in GitHub Desktop.
Save tmiz/1470619 to your computer and use it in GitHub Desktop.
IronPython Sample
#!/usr/bin/env ipy
import clr
clr.AddReference("System.Windows.Forms")
clr.AddReference('System.Drawing')
import System.Windows.Forms
import System.Drawing
myForm = System.Windows.Forms.Form()
myForm.Text = "2011 Mac Dev JP Advent Calendar"
myForm.Show()
myLabel = System.Windows.Forms.Label()
myLabel.Text = "hello X'mas"
myLabel.Location= System.Drawing.Point(100,100)
myLabel.ForeColor = System.Drawing.Color.Green
myForm.Controls.Add(myLabel)
System.Windows.Forms.Application.Run(myForm)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment