Skip to content

Instantly share code, notes, and snippets.

@obscuren
Last active August 29, 2015 13:56
Show Gist options
  • Save obscuren/9137296 to your computer and use it in GitHub Desktop.
Save obscuren/9137296 to your computer and use it in GitHub Desktop.
ApplicationWindow {
minimumWidth: 500
maximumWidth: 500
maximumHeight: 100
minimumHeight: 100
title: "Ethereum Dice"
TextField {
id: textField
anchors.verticalCenter: parent.verticalCenter
anchors.horizontalCenter: parent.horizontalCenter
placeholderText: "Amount"
}
Button {
anchors.top: textField.bottom
anchors.horizontalCenter: parent.horizontalCenter
anchors.topMargin: 5
text: "Place bet"
onClicked: {
console.log(eth.createTx("e6716f9544a56c530d868e4bfbacb172315bdead", parseInt(textField.text)))
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment