Basil Shubin wrote:
> Editor: GNU Emacs + python mode (Emacs rules! ;-))
> IDE: there is ECB (Emacs Code Browser), but never use it before
> Debuger: one or two times use the one which bundled into IDLE
>   
Hmmm, I'll have to look into ECB.

I've used the Python debugger in Emacs "gud" mode; works OK, but a bit 
quirky.  I've found it awkward to use with wx, though.  I usually rely 
on keeping the UI code as small as possible, putting most code in a 
"model" module, and unit testing that as thoroughly as possible 
(Python's unittest works fine).

Another goodie: a neat trick Robin mentioned on the wx list, is to add 
the following to your App.OnInit method:
>         if len(sys.argv) > 1 and sys.argv[1] == '-s':
>             from wx import py
>             #shell = py.shell.ShellFrame(
>             shell = py.crust.CrustFrame(
>                 self.frame, locals=dict(wx=wx, frame=self.frame, 
> app=self))
>             shell.Show()
>             self.frame.Raise()
This will bring up an instance of PyCrust alongside your app, with "app" 
defined.  You can then examine the contents of the app (start with "f = 
app.frame"), send methods to various objects, etc.

Finally, I use ELSE mode in Emacs to provide "templates" for Python 
constructs.  This can avoid bothersome syntax errors and save some 
typing.  See http://home.exetel.com.au/peterm/.

-- 
Don Dwiggins
Advanced Publishing Technology



_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users

Reply via email to