Skip to content

Instantly share code, notes, and snippets.

Mark Tearle mtearle

Block or report user

Report or block mtearle

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@mtearle
mtearle / EXAMPLE-socket.py
Created Oct 14, 2014
npyscreen EXAMPLE of a socket connection updating widgets
View EXAMPLE-socket.py
#!/usr/bin/env python
import npyscreen, curses
# Incorporates code
# from http://www.binarytides.com/python-socket-server-code-example/
# Socket server in python using select function
import socket, select
class MyTestApp(npyscreen.NPSAppManaged):
# socket code
You can’t perform that action at this time.