:: WXPYTHON TROVE ::


 

Behind this ambitious name hides a pet project of mine. Consider the following:

  • I'm hardly more than a beginner at wxPython. There's lots for me to learn.
  • wxPython is powerful and, IMHO, better than Tkinter (although YMMV yadda yadda... this is not the place for a flamewar discussion about which one is best).
  • Information is available in several places, but it's not exactly easy to get. (The tutorial is too short, the wxWindows documentation is mostly aimed at C++, the demo is good but doesn't quite cover everything).

I'm sure I'm not the only one who feels like this. Now, I'm currently developing a few simple and not so simple apps, hoping to code the GUI in wxPython. What I'm going to do is make the things I "discover" available on this page. These may be very simple things, that can be done with a button-press in Delphi... but that are not so obvious in wxPython. (For example, aligning a control to its client.) Or, it may be information that is generally useful, and possibly dealt with by the demo, but not explicitly explained. (For example, how wxListCtrls, virtual and non-virtual, work.)

 

I do not have the following expectations, and you probably shouldn't either <wink>:

  • that this site will grow as big as the snippets site I used to have. I simply don't have the time to do a lot of research, and I don't expect everybody to jump up and send in their contributions. (Of course they're welcome, by the way, but what I mean is, I won't get my hopes up.)
  • that this site will cover everything, or even most of wxPython's smorgasbord of components. For now, it will just cover information on the components that I happen to need for my projects.
  • that this site will be well-organized, or will have a handy search mechanism.
  • that examples will work right out of the box. I don't take great pains anymore to make sure that every "snippet" is a self-containing piece of code that should work without modification. Any examples will be indications of how to do certain things, often pasted from real-world code. I will not edit this code more than necessary to make clear what's going on.

On the other hand, I don't want to be too pessimistic. It's possible that this site will spawn some nice tricks, modules, classes, etc, and anything generally useful will be added to a wxPython library called wax that I'm currently working on. (Don't hold your breath; it currently contains only one module.)

 

That said, here's the link to my collection.

 

.[2002.04.17].