Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

brython sample

<html>
<head>
<script src="/brython.js"></script>
</head>
<body onload="brython()">
<script type="text/python">
from browser import document
from browser.widgets.dialog import InfoDialog

def click(ev):
    InfoDialog("Hello", f"Hello, {document['zone'].value} !")

# bind event 'click' on button to function echo
document["echo"].bind("click", click)
</script>
<input id="zone">
<button id="echo">click !</button>
</body>
</html>
Comment

PREVIOUS NEXT
Code Example
Python :: with statement in python 
Python :: youtube-dl python not found 
Python :: use fetchone() function to find duplicate row. 
Python :: differences between Pool.apply, Pool.apply_async, Pool.map and Pool.map_async. 
Python :: Python NumPy asanyarray Function Syntax 
Python :: Python NumPy ascontiguousarray Function Example List to an array 
Python :: Python NumPy stack Function Syntax 
Python :: Python NumPy row_stack Function Example with 1d array 
Python :: making dividers in tkinter 
Python :: How can Clone or Duplicate a Row Using np.tile 
Python :: mid-point line drawing 
Python :: Python __le__ 
Python :: object at being output python 
Python :: pandas listagg equivalent in python 
Python :: pandas use 3 columns for 2d distribution 
Python :: URL to origin python 
Python :: free konta mc 
Python :: geopandas cmap change options 
Python :: how to change voice in pyttsx3 
Python :: run server localhost for shar file 
Python :: pygame borders on window 
Python :: preallocate numpy array 
Python :: How many rows and columns are present in the dataframe? 
Python :: install python 3 ubuntu 16.04 
Python :: python logical operators code in grepper 
Python :: python regex with f-string 
Python :: ring Delete Item From List 
Python :: Select right color to threshold and image with opencv 
Python :: convert all date columns using pd.datetime 
Python :: numpy mask without losing shape 
ADD CONTENT
Topic
Content
Source link
Name
5+2 =