Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,29 @@
|
|||
using fwt
|
||||
using gfx
|
||||
|
||||
class SimpleApplication
|
||||
{
|
||||
public static Void main ()
|
||||
{
|
||||
Window
|
||||
{
|
||||
title = "Simple Window Application"
|
||||
size = Size(350, 50)
|
||||
clicked := 0
|
||||
label := Label
|
||||
{
|
||||
text = "There have been no clicks yet"
|
||||
}
|
||||
Button
|
||||
{
|
||||
text = "Click me"
|
||||
onAction.add |Event e|
|
||||
{
|
||||
clicked += 1
|
||||
label.text = "There have been $clicked clicks"
|
||||
}
|
||||
},
|
||||
label,
|
||||
}.open
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue