Don't understand wxPython ids
Christopher Barker
Chris.Barker at noaa.gov
Thu Apr 29 18:16:25 EDT 2004
Greg Ewing wrote:
> Use of a number here seems to be entirely the result
> of blindly carrying over a feature of the C++-oriented
> API into Python.
Honestly, that's exactly what it is. wxPython is a wrapper around a VERY
large C++ toolkit. It uses SWIG to create wrappers that pretty much
match the C++ API. This has had two big advantages:
1) Robin Dunn could actually get it working in a relatively short period
of time
2) the docs match as well, so We had a pretty complete (if confusing)
set of docs from the beginning
Note that neither of these has anything to do with what a good Python
API is, but I don't think we'd have wxPython at all if Robin had set out
to make the best API he could.
FWIW, wxPython is slowly growing more "pythonic" wrappers. There are
also a couple of efforts to make another layer between wxPython and the
user:
PythonCard
Wax
MindWrapper
Of these, PythonCard is probably the farthest along.
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chris.Barker at noaa.gov
More information about the Python-list
mailing list