473,402 Members | 2,072 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,402 software developers and data experts.

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 4177
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: John Ladasky | last post by:
Hi, folks, At the beginning of 2003, I was a frustrated computer user, and lapsed programmer, with problems to solve that screamed for programming. Thanks to the Python language and community, I...
6
by: Logan | last post by:
Would you recommend to use the wx package of wxPython? From the documentation: Provides a way to drop the wx prefix from wxPython objects by dynamically loading and renaming objects from the...
7
by: SeeBelow | last post by:
Do many people think that wxPython should replace Tkinter? Is this likely to happen? I ask because I have just started learning Tkinter, and I wonder if I should abandon it in favor of...
48
by: Bulba! | last post by:
I'll soon start development of a specialized small app and need to choose GUI for it. I have narrowed the choice to wxPython/PythonCard and QT/PyQT (buying commercial licenses is not a big...
25
by: TPJ | last post by:
GUI's etc: PyGtk on Windows "(...) So if someone develops mainly for X and just wants to make sure that it is not impossible to run on Windows, you can use PyGTK. (...)", July 2nd, 1999 pyGTK...
14
by: Rod W | last post by:
I'm just starting out on Python but my primary goal is to provide applications with some user interface (GUI). Can someone point me to a good comparison of whether I should use wxPython (with...
7
by: krishnakant Mane | last post by:
hello all. finally I got the accessibility issue out from wxpython. actually almost got it out, but that's another story. now my problem is that I can't gind a downloadable version of wxpython...
1
by: PAllen | last post by:
Hi all, I am trying to get rid of a few of my old MS Access applications and move them to PostgreSQL and Python/wxpython. Does anyone have any suggestions on the easiest way to learn to program...
14
by: Astley Le Jasper | last post by:
I'm still learning python and would like to know what's a good way of organizing code. I am writing some scripts to scrape a number of different website that hold similar information and then...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.