Re: [Pythonmac-SIG] AutoComplete in C++ Editor for Python
Don McGuire wrote: Is there a way to "compile" the python code and get access to the symbol table from that compiled block? Did anybody ever implement AutoComplete in a editor for Python? You might want to try the pyXIDEs list -- this certainly isn't a Mac-specific question: [email protected] An anycase, there are some open-source tools that do AutoComplete, I"d look for them and look at their code. And you can compile to code to .pyc files without running it, and there are tools to examine the results. I've never done any of that, you might want to try comp.lang.python. In the meantime, check out these functions and modules: compile() compiler code codeop HTH, -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R(206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception [email protected] ___ Pythonmac-SIG maillist - [email protected] http://mail.python.org/mailman/listinfo/pythonmac-sig
Re: [Pythonmac-SIG] Using AHRegisterHelpBook
Kevin Walzer wrote: Not all parts of this are relevant, since I'm using Tkinter and bumping up against Tk's limited support for displaying HTML, but it will give you an idea of the issues. Since you're using wxPython, can't you just call either the wxHelp API (a bit complicated if I recall correctly) or simply create a simple HTML viewer? I think something like that is in the wxPython demo code. With wx, there are two good options for doing your own HTML help: use wxHTML -- this is simple and fast, and I think there is a help-browsing app built in wxPython already, for the wxPython help. The downside is that it does not support modern HTML (i.e. CSS, etc). If you want full-on HTML, you can embed the system browser -- on the Mac, that's the webkitctrl -- it works pretty well. In the future, I hope wxWebKit will be robust enough to use -- it may be now for things like basic help -- that would give you full cross platform control over the browser component. Of course, just pointing the system browser at your help is quick and easy. -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R(206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception [email protected] ___ Pythonmac-SIG maillist - [email protected] http://mail.python.org/mailman/listinfo/pythonmac-sig
Re: [Pythonmac-SIG] Using AHRegisterHelpBook
Christopher Barker wrote: use wxHTML -- this is simple and fast, and I think there is a help-browsing app built in wxPython already, here it is: wx.html.HtmlHelpController -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R(206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception [email protected] ___ Pythonmac-SIG maillist - [email protected] http://mail.python.org/mailman/listinfo/pythonmac-sig
