Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

20 lines (14 sloc) 0.371 kB
from System.Windows.Forms import Form, Button, Application
from PythonSharp.Utilities import ObjectUtilities
f = Form()
f.Text = "PythonSharp Form"
b = Button()
b.Text = "Hello"
b.Width = 150
b.Height = 50
f.Controls.Add(b)
def click(sender, event):
print("Click")
ObjectUtilities.AddHandler(b, "Click", click, locals())
Application.Run(f)
Jump to Line
Something went wrong with that request. Please try again.