is there something like a list of styles for each type of widget? For
example list of styles with some descriptions which i can use in wxPanel
constructor..
--
Gabriel
Have you check the docs ;)?
http://docs.wxwidgets.org/2.8.9/wx_wxpanel.html#wxpanel
http://docs.wxwidgets.org/2.8.9/wx_wxframe.html#wxframe
Cody
_______________________________________________
wxpython-users mailing list
wxpytho...@lists.wxwidgets.org
http://lists.wxwidgets.org/mailman/listinfo/wxpython-users
Hmmm...this thread lists the common style flags for various windows:
http://lists.wxwidgets.org/pipermail/wxpython-users/2004-April/027891.html
But there doesn't seem to be a source of documentation on which style
flags go where or what they do exactly. Most of the time, the name of
the style will tell you though.
It looks like TR_AQUA_BUTTONS is referenced like this:
wx.wxTR_AQUA_BUTTONS. It is in the _controls.py file underneath a
comment that says it is obsolete. I think it is there to support a style
on an old OS, maybe a Mac?
Hopefully the new vaunted docs will better explain the style flags. In
the mean time, Robin's book is pretty much the only source I have for
this sort of thing. Too bad the index sucks for finding this kind of stuff.
-------------------
Mike Driscoll
Hmmm...this thread lists the common style flags for various windows:
http://lists.wxwidgets.org/pipermail/wxpython-users/2004-April/027891.html
But there doesn't seem to be a source of documentation on which style flags go where or what they do exactly. Most of the time, the name of the style will tell you though.
Oops...I forgot about the wxWidgets docs. Duh!
Mike
Andrea is using Sphinx for his documentation, as is the Python docs
pages. The new docs for wxPython will be in Doxygen, which sounds
similar to Sphinx. There's a list of sites that use Doxygen here:
http://www.stack.nl/~dimitri/doxygen/projects.html . It looks kind of
plain, but not bad.
On Mon, Apr 20, 2009 at 6:22 PM, Rene Heymans wrote:
> Hello Mike, Cody, & al.
>
> About documentation, after many trials, I now go to Andrea's documentation
> site http://xoomer.virgilio.it/infinity77/wxPython/APIMain.html which I find
> almost completely documented and foremost "visually attractive" (wait till
> you get over 55 and you will have to abandon the sleek dense screen with
> tiny letters ... ;-) ... ) . If there is something I can't find, I go to
> the wxWidgets docs (quite nice and complete too but in C++ jargon). The
> other reason I like Andrea's documentation is that it looks similar to the
> new Python 3 doc.
>
> The other day I saw a short note about doc mentionning Doxygen, Sphynx, and
> ... ?? can't remember. I'm not at all versed in these documentation tools
> but from a user point of view, next to accuracy and completeness I favour
> very much beauty and elegance.
So do I ;-)
<rant>
There was a discussion some time ago about the work I did with the
wxPython documentation and Sphinx: it looked like the general opinion
of wxPython *users* was that the Sphinx docs were reasonably good (in
terms of beauty and elegance, to use your wording), but it seemed to
me that the big wxPython bosses decided that, as wxWidgets is using
Doxygen, wxPython has to use Doxygen too. An example of how the
wxWidgets docs look like in the development trunk is here:
http://docs.wxwidgets.org/trunk/classwx_animation_ctrl.html
I have nothing against Doxygen, the only points I tried to make (and I
failed) were that Doxygen docs are no match for Sphinx docs (see an
example of what you can do with Sphinx here:
http://matplotlib.sourceforge.net/api/pyplot_api.html) and that, by
using Sphinx, we were bringing closer the wxPython docs and the Python
docs.
</rant>
Andrea.
"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/
> <rant>
>
> There was a discussion some time ago about the work I did with the
> wxPython documentation and Sphinx: it looked like the general opinion
> of wxPython *users* was that the Sphinx docs were reasonably good (in
> terms of beauty and elegance, to use your wording), but it seemed to
> me that the big wxPython bosses decided that, as wxWidgets is using
> Doxygen, wxPython has to use Doxygen too.
Note quite. The final decision for the docs hasn't been made yet.
On the other hand, we will however be using Doxygen in some way for
generating the C++ wrapper code for wxPython. Either the same input as
is given to doxygen for the C++ docs, or more likely doxygen's XML
output. What exactly is being generated is also still to be decided.
In addition to C++ wrapper code it may or may not include docs, or it
may just generate docstrings that can be processed by some other Python
tool, or something in between.
The intent of this exercise is to reduce the amount of work needed to
maintain wxPython and keep it in sync with wxWidgets. By using the XML
output of doxygen (or reusing its input somehow) then much more is
automated than it is now, and as soon as one of the C++ developers makes
a change there then that change can also appear in wxPython's next
build. We just need to develop the tools, make decisions on which
direction to go with them, and come up with a good way to override the
tools for the cases where customization are needed.
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
Yes Sphinx docs are nice -- I think we all agree on that.
> me that the big wxPython bosses decided that, as wxWidgets is using
> Doxygen, wxPython has to use Doxygen too.
I don't think it's as simple as that. I'm not one of the "bosses",
indeed, anyone that does a significant amount of work is a boss, if you
ask me, and that includes you!
Anyway, I think the key issue is that wxPython is built on top of
wxWidgets, so we need an automatic way to go from changes in wxWidgets
to the wxPython docs, without hand manipulation. The "new docs" were a
start to that process. I think we could use Sphinx to go from python
docstrings to docs, but we still need a good way to go from the C++ ,
and it's comments, to the python doc strings, and Doxygen may help with
that.
We also need a way to add the extra stuff -- examples, pointers to the
Wiki, etc, etc, and I think Sphinx has some good features for that.
In any case, if someone actually builds something nice, like you have
with your docs, that gives you a lot of leverage for declaring how to do
it in the future.
-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