Re: " wxpython
documentation" @ http://groups.google.com/group/wxpython-users/browse_thread/thread/4a75056eacd8c579
on 2010-08-12
Fidel,
You certainly are not alone getting endlessly frustrated trying to
find some the most basic information about using particular wx
methods. *** There is no free complete and single source for
wx documentation***.
Here are some readily available partial documentation and working
example sources (listed in no particular order):
1 - [http://www.wxpython.org/docs/api/](http://www.wxpython.org/docs/api/)
You can browse this site directly, but I prefer to use Google to do
a general search like you did because Google always lists this site
in the first or second listed hit. The most effective Google search
phrase template (for me) is:
wxpython "wx.choice"
Use the quotes as shown. Just replace the word [ choice ] with the
wx control_name or wx constant_name of your choosing. The [ wx. ]
part is very necessary to search for all relevant web pages…
2 - The "wxPython Docs Demos and Tools". These are 2 separate
downloads and installations from the wxPython package. There are
very many working examples in the single all-inclusive demo program.
Every “built-in” and many “pure wxPython” controls have working
demos. However, detailed method explanations are very few and far
between. The example code is very easily viewed and copied. Getting
any one control demo sample to run as a stand-alone app is a real
PITA. The wxPython demo program and the HTML doc packages are
available in the same web page as the wxPython download: wxPython2 Docs Demos
and Tools
3 - The [ WxWidgets C++
documentation](http://www.wxwidgets.org/docs/) . Most of this has been already regenerated into
wxPython documentation, but there are sometimes extra usable
information here.
4 - Searching all the [ .py ] files for the usage of the control in
which you are interested. On Win7 (and Vista ?) platforms,
Microsoft, in their infinite wisdom, has eliminated the Windows XP
text string search capability in the Windows Explorer file search
utility. However, I found a truly great 3rd part search utility over
11 years ago that was developed in the NT days and still works as
extremely efficiently as it originally did. I have researched
literally 100 other search/search+replace apps and they all have
serious, if not fatal, deficiencies that make them completely
useless. My life-saving utility is called Search &
Replace by Funduc Software. It has been updated for Vista and
Win7 but it appears and operates identically to the original
release.
If you are reasonably proficient using regular expressions (I'm
not) you can perform complex searches and search+replaces using
egrep regex phrase searches instead of the default plain text
searches. This program is literally “worth its weight in gold” to me
and is extraordinarily fast. (No, I don’t get any “cut” from its
sales. It costs only USD $25) It’s offered in 32-bit and 64-bit
versions for MSW, but I’ve never encountered any working 32-bit MSW
program that didn’t work on a MSW 64-bit platform. 32-bit MSW
programs run properly on each of the 2 MSW platforms for XP, Vista
and Win7.
5 - Organize you own collection of Python and wxPython sample apps
then use Search&Replace to locate sample usages of the control
or parameter you are researching. I’ve been collecting working
samples and adding explanation comments for years and this source is
extremely useful to me. This takes lots of time and effort, but this
is well worth it to me. I also “play around” with them by
temporarily altering the code to see the differences.
6 - [ ActiveState.com Code
Recipes](http://code.activestate.com/recipes/) . Lots of useful wxPython and Python working examples
are free-for-the-taking. ActiveState wxPython and Python are
commercial packages that are NOT open source. However, it seems to
have all the standard Python interpreters and many add-on packages
for all the wxPython and Python versions. I guess that their
customers buy them mostly for their documentation. I wouldn’t know.
I use these 8 methods to figure out what I need to know. You can
always ask
right here if you get really stuck or want to know
something obscure (or just not documented).
7 - [www.daniweb.com](www.daniweb.com) - There's lots of
good working examples here.
8 - [ Right
Here !](http://groups.google.com/group/wxpython-users/) I first do all my own research
homework. Whatever useful info turns up I file into my accumulated
research, item 5, because I do not have a photographic memory.
Other Things That You Should Be Aware (or "Beware" ?!):
- Finding parameter names and parameter constant values and their
documentation is unnecessarily difficult. You can sometimes find
them listed in the actual wxPython code implementation buried within
your Python/wxPython …/site-packages/… folder.
- Over half my library of sample apps have NOT come from the
wxPython-users discussion board or the wxPython.org sites. They have
been posted from many other discussion boards. These sites are
mostly *nix platform developers’ discussion forums. I’m amazed that
the vast majority of the apps work properly on Windows platforms.
They will show up on Google searches.
Happy Hunting (I mean this literally)
Ray Pasco