Skip to content

Instantly share code, notes, and snippets.

@kotauchisunsun
Last active July 5, 2017 10:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kotauchisunsun/e5aa319d315798bad3767b543b2cb343 to your computer and use it in GitHub Desktop.
Save kotauchisunsun/e5aa319d315798bad3767b543b2cb343 to your computer and use it in GitHub Desktop.
Pythonマイナー環境列伝 ~あなたはいくつのPython環境を知っているか?~ ref: http://qiita.com/kotauchisunsun/items/e4f65ad392cd00b60495
<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