samples/chat/chat.py
def send(evt):
    "Process an outgoing communication"
    # get the text written by the user (input textbox control)
    msg = ctrl_input.value
    # send the message (replace with socket/queue/etc.)
    gui.alert(msg, "Message")
    # record the message (update the UI)
    log(msg)
    ctrl_input.value = ""
    ctrl_input.set_focus()
def send(evt):
    "Process an outgoing communication"
    # get the text written by the user (input textbox control)
    msg = ctrl_input.value
    # send the message (replace with socket/queue/etc.)
    gui.alert(msg, "Message")
    # record the message (update the UI)
    log(msg)
    ctrl_input.value = ""
    ctrl_input.set_focus()
def send ( evt ) : # get the text written by the user (input textbox control) msg = ctrl_input . value # send the message (replace with socket/queue/etc.) gui . alert ( msg , "Message" ) # record the message (update the UI) log ( msg ) ctrl_input . value = "" ctrl_input . set_focus ( )
Process an outgoing communication
Process an outgoing communication