[PyCrust] New stuff
Brought to you by:
pobrien
From: Patrick K. O'B. <po...@or...> - 2003-02-04 16:40:04
|
Just wanted to point out some recent changes to the CVS version of PyCrust, in case some of you might want to play with them. In particular, the most recent change at the bottom of the list is kind of fun. CHANGES ======= Wrapped sys.ps1, sys.ps2, and sys.ps3 in str(). (Thanks, Kieran Holland.) Fixed minor things found by PyChecker. Changed locals to use __main__.__dict__ and added code to clean up the namespace, making it as close to the regular Python environment as possible. This solves the problem of pickling and unpickling instances of classes defined in the shell. Made shell.PasteAndRun() a little more forgiving when it finds a ps2 prompt line with no trailing space, such when you copy code from a web page. Improved autocomplete behavior by adding these to shell: self.AutoCompSetAutoHide(False) self.AutoCompStops(' .') Added decor directory, decorator.py, stcDecor.py, and stcConstants.py. These all serve the purpose of adding docstrings to existing wxPython classes, in particular the wxStyledTextControl. Added wrap.py, a command line utility for running a wxPython app with additional runtime-tools loaded, such as PyCrust (the only tool at this point). --------------------------------------------------------------------- With the wrap utility you can run an existing wxPython program (as long as it has a wxApp subclass that doesn't require any __init__ parameters) and you'll automatically get a PyCrust frame with an `app` variable in the local namespace so you can interact with your app. Just run wrap.py from the directory containing your wxPython program and pass the name of your program as a command line arg, like this: wrap.py myProgram.py or: wrap.py myProgam or: python wrap.py myProgram.py or: python wrap.py myProgram or: ~/Code/PyCrust/wrap.py myProgam.py or: C:\Code\PyCrust\wrap.py myProgram Let me know how you like it. Also note that the autocomplete changes appear to be causing a problem on non-Linux platforms. -- Patrick K. O'Brien Orbtech http://www.orbtech.com/web/pobrien ----------------------------------------------- "Your source for Python programming expertise." ----------------------------------------------- |