Last active
July 5, 2017 10:55
-
-
Save kotauchisunsun/e5aa319d315798bad3767b543b2cb343 to your computer and use it in GitHub Desktop.
Pythonマイナー環境列伝 ~あなたはいくつのPython環境を知っているか?~ ref: http://qiita.com/kotauchisunsun/items/e4f65ad392cd00b60495
This file contains 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
<html> | |
<head> | |
<script src="/brython.js"></script> | |
</head> | |
<body onload="brython()"> | |
<script type="text/python"> | |
from browser import document, alert | |
def echo(ev): | |
alert(document["zone"].value) | |
document['mybutton'].bind('click',echo) | |
</script> | |
<input id="zone"><button id="mybutton">click !</button> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment