![](https://secure.gravatar.com/avatar/95198572b00e5fbcd97fb5315215bf7a.jpg?s=120&d=mm&r=g)
On Tue, Aug 26, 2008 at 5:25 PM, Zachary Pincus <zachary.pincus@yale.edu> wrote:
It's quite hackable, too -- I rigged up a very simple system to run pyglet windows in a background thread, so I could control the microscope from an interactive python interpreter, while still being able to programmatically interact with pyglet window objects. (Happy to share this code with anyone who desires. It's much cleaner, IMO, than the gyrations that ipython has to go through to support nonblocking QT, Tk, etc. windows. This is becase the pyglet mainloop is in python, and is easy to subclass and otherwise mess with.)
Does your code work as-is inside ipython? Would you want to contribute it to ipython? We'd love to ship an out-of-the-box-pyglet-shell, just let us know. Cheers, f