[Pyobjc-dev] PyShellView?
Brought to you by:
ronaldoussoren
From: Michael H. <mw...@py...> - 2003-07-01 17:38:02
|
I seem to have written this on the train on the way back from EuroPython: For a PyObjC application I want to write, I really really want to have a Python shell view, i.e. an area I can type Python commands into and have them executed interactively. I should have few problems with the Python side -- I seem to do things like this all the time -- but the Cocoa side is considerably more mysterious to me. Also I want to donate this to the PyObjC project, as it would be an essential component of any PyObjC-based IDE, and I would like to do a really good job and produce a widget that is maintainable by others. I imagine this would involve writing a subclass of NSTextView. Override keyDown:? I'm not sure where to hook into to modify behaviour at this level. In dreamland, I would like to be able to drag a PyShellView from the palette in IB, select which module it should run in from the Info window -- default "__main__" -- and have things Just Work(tm). I don't really have any time to work on this, but probably will find some anyway. Comments? Cheers, M. -- Two things I learned for sure during a particularly intense acid trip in my own lost youth: (1) everything is a trivial special case of something else; and, (2) death is a bunch of blue spheres. -- Tim Peters, 1 May 1998 |