Created
December 13, 2011 04:40
-
-
Save tmiz/1470619 to your computer and use it in GitHub Desktop.
IronPython Sample
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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