468,267 Members | 1,843 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,267 developers. It's quick & easy.

Is there any good wxPython documentation?

I'm trying to learn wxPython, but I can't seem to find much
documentation. The wxPython website says that all advanced (and even
some basic) documentation for wxPython is only available in C++ syntax
in the main wxWindows documentation. It also says that the samples
will help, but I can't seem to make sense of them. Should I just use a
not-as-good GUI like Tkinter or a not-as-common one like Anygui or
PyUI if I want to have documentation?
LittleDan
Jul 18 '05 #1
5 3952
Daniel Ehrenberg wrote:
I'm trying to learn wxPython, but I can't seem to find much
documentation. The wxPython website says that all advanced (and even
some basic) documentation for wxPython is only available in C++ syntax
in the main wxWindows documentation. It also says that the samples
will help, but I can't seem to make sense of them. Should I just use a
not-as-good GUI like Tkinter or a not-as-common one like Anygui or
PyUI if I want to have documentation?
LittleDan


wxPython is definitely worth the effort. I spent time getting over the
wxPython learning curve and I'm happy I did it.

You really don't need the advanced documentation (unless you're pushing
the envelope). The wxWindows documentation and the demos are enough.

Try to duplicate the demos in your own code. Learn the difference
between wxWindow, wxScrolledWindow, wxFrame and wxPanel. Play with
wxTextCtrl, wxStaticText and wxListBox.

Forget the menu stuff in the beginning. You can add it later.

Work with the dialogs--wxMessageDialog, wxTextEntryDialog,
wxSingleChoiceDialog and wxMultipleChoiceDialog.

Avoid the sizers. Use the RolColSizer instead (a wonderful tool).

The wxPython objects have a lot of methods and attributes. Wrap them in
your own Python functions to create interfaces you're comfortable with.

Time spent with wxGrid is golden. Study the documentation and create
your own interfaces, as there are way too many features to absorb at once.

Subscribe to wx************@lists.wxwindows.org to get truly helpful
answers to your questions.

Jul 18 '05 #2
Daniel Ehrenberg wrote:

I'm trying to learn wxPython, but I can't seem to find much
documentation. The wxPython website says that all advanced (and even
some basic) documentation for wxPython is only available in C++ syntax
in the main wxWindows documentation. It also says that the samples
will help, but I can't seem to make sense of them. Should I just use a
not-as-good GUI like Tkinter or a not-as-common one like Anygui or
PyUI if I want to have documentation?


If you look at a few wxPython examples and the wx.chm help on the
corresponding classes, you should see how the wx.chm help relates to
the Python usage. The translation between C++ usage and python
usage of wxWindows really is pretty straightforward about 98% of
the time, and there are some python-specific notes in the wx.chm file
that cover most of the remaining 2%. I've done some tkinter and quite
a bit more wxPython, and they really are quite similar. If you
nderstand how event-driven UI's work, you'll see that the same basic
principles of how an app goes together are expressed comparably in each
toolkit.

About a year ago, I felt the same way about the lack of elementary
wxPython docs as you do. It seems that everyone who has had that
complaint either goes away or sticks with it for a week or two and
figures it out and then there is no problem. Not to make light of
your frustration, but this question is some ways similar to "Why
aren't there any good books for beginners on how to ride a bicycle?"

Good luck with it. Don't give up. Copy the examples. Try stuff.
If you hit a specific problem, post it here or on the wxPython list,
and you'll probably get a nice answer quicker than Schwazenegger
punches out California's fiscal crisis.
Al
Jul 18 '05 #3
Li************@yahoo.com (Daniel Ehrenberg) wrote in message news:<71**************************@posting.google. com>...
I'm trying to learn wxPython, but I can't seem to find much
documentation. The wxPython website says that all advanced (and even
some basic) documentation for wxPython is only available in C++ syntax
in the main wxWindows documentation. It also says that the samples
will help, but I can't seem to make sense of them. Should I just use a
not-as-good GUI like Tkinter or a not-as-common one like Anygui or
PyUI if I want to have documentation?
LittleDan


One advantage of Tkinter is that it comes with Python. So if the GUI
that you had in mind is "just good enough", then people will be able
to use your code straight out of the box.

A good tip if you want to write GUIs using wxPython is to download
"Boa Constructor". It's not only a GUI builder, but a complete IDE.
You can find it on Sourceforge.
Jul 18 '05 #4

"Daniel Ehrenberg" <Li************@yahoo.com> wrote in message
news:71**************************@posting.google.c om...
I'm trying to learn wxPython, but I can't seem to find much
documentation.


I recommend that you sidestep the issue by downloading Boa Constructor from
Sourceforge; you want to use wxPython to build GUI's conveniently and
quickly - by using a tool you can avoid much of the drudgery of vxPython yet
still get the results.

PS:

Boa is, IMO extremely useful and capable, even if it is presently only in
version 0.2x. (The developers are probably a bit self-deprecating)
Jul 18 '05 #5
> About a year ago, I felt the same way about the lack of elementary
wxPython docs as you do. It seems that everyone who has had that
complaint either goes away or sticks with it for a week or two and
figures it out and then there is no problem. Not to make light of
your frustration, but this question is some ways similar to "Why
aren't there any good books for beginners on how to ride a bicycle?"


If you can read german, I recommend my book "Python und GUI-Toolkits", (MITP)
which demonstrates how to write an application with several gui toolkits.
Detailed sections are provided for PyQt, wxPython, Tk and Gtk 2.
It also talks about gui toolkits in general, so once you grapsed the concept,
you can transfer this knowledge to a large number of existing toolkits.

Unfortunately I did the mistake to not make this an english book,
because there is still nothing comparable on the market. Next time ;)

Cheers,
Jul 18 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by John Ladasky | last post: by
6 posts views Thread by Logan | last post: by
7 posts views Thread by SeeBelow | last post: by
48 posts views Thread by Bulba! | last post: by
14 posts views Thread by Rod W | last post: by
7 posts views Thread by krishnakant Mane | last post: by
14 posts views Thread by Astley Le Jasper | last post: by
reply views Thread by NPC403 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.