Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
|
|
@ -0,0 +1,25 @@
|
|||
import javafx.stage.*;
|
||||
import javafx.scene.*;
|
||||
import javafx.scene.layout.*;
|
||||
import javafx.scene.control.*;
|
||||
|
||||
Stage {
|
||||
scene: Scene {
|
||||
width: 300 height: 200
|
||||
content: VBox {
|
||||
var clicks: Integer;
|
||||
|
||||
spacing: 10
|
||||
content: [
|
||||
Label {
|
||||
def varText = bind if (clicks == 0) then "no clicks yet" else "{clicks} clicks"
|
||||
text : bind "There have been {varText}"
|
||||
}
|
||||
Button {
|
||||
text: "click me"
|
||||
onMouseClicked: function(e) { clicks++; }
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue