473,769 Members | 6,286 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 4197
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, wxScrolledWindo w, 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 , wxTextEntryDial og,
wxSingleChoiceD ialog and wxMultipleChoic eDialog.

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.go ogle.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.goo gle.com...
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
2651
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 am a programmer once again. My earlier solicitation to the computer world is here: http://groups.google.com/groups?selm=c09b237b.0302060136.5683054e%40posting.google.com
6
2197
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 real wxPython package. This is the first phase of a transition to a new style of using wxPython. For example: import wx
7
11907
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 wxPython. Mitchell Timin -- "Many are stubborn in pursuit of the path they have chosen, few in
48
2953
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 problem, the company would pay for it). Which is better for this kind of application? I mean, looking from purely technological and long-term development aspects and ignoring licensing issues:
25
4283
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 on Windows "(...) > can i use pyGTK under > Windows???
14
13373
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 wxGlade I assume) or PyGTK (with Glade I assume)? I'd prefer open source (not necessarily GPL though) tools. Rod
7
2045
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 api reference for the latest version or the latest api reference at least. I found the on-line version so please don't provide the same link. when I opened it on line, it took about 8 minuts to get the wx package come up on screen with over 600...
1
2555
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 small database applications with python & wxpython? Does anyone have a few small examples at least? I will mainly need forms with/without subforms for viewing and inserting data into the database. Nothing too complicated to get
14
1838
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 collating it all together. Obviously each site needs to be handled differently, but once the information is collected then more generic functions can be used. Is it best to have it all in one script or split it into per site scripts that can then...
0
9423
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10211
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9993
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9863
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6672
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5298
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5447
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3958
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3561
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.