Skip to content

Instantly share code, notes, and snippets.

@croxis
croxis / cgui.py
Last active December 14, 2015 21:59
Attempt at combining bpython with panda3d. Currently does not show input until enter is pressed.
## Overrides for bpython to work under panda's loop and modified urwid ##
import os
import urwid
from urwid.display_common import INPUT_DESCRIPTORS_CHANGED
# urwid overrides to work with Panda3D's task system #
class PandaEventLoop(urwid.SelectEventLoop):