First, sorry for the private reply but there seems to be a problem with the list server handling gmail’s encoding properly, so this is the only way to make sure you get it without annoying a bunch of people.
- Generate a drop-down list dynamically.
I do this all the time, in a number of ways.
- Stack 2 frames and select the one to be visible.
To mirror the one fellow’s concern, if “frame” means something different in QT, that could cause confusion. A ‘frame’ in wx is the outermost level of a window with widgets, includes the title bar et all. You can have multiple frames open, and I BELIEVE that you can hide/show them at will, though I’ve never used that feature.
- Create a list of text items with multiple columns. Choose the column to
use for sorting the items.
In a number of ways. There are some basic choices, plus some third party and custom classes included with wx that should help.
- Programmatically change the background color of a row in the list of text items (to highlight a selection, for example).
Yes, in fact it’s quite easy to change the font, colors, and even graphics associated with a row in a wx.ListCtrl.
Also, I have read that wxPython offers a large variety of widgets. Where can I find documentation on the available widgets?
Download the archive and install. There is a DK document that is written for wx.Widgets (the C++ core libraries) but they are fairly easy to transliterate to Python. Plus, where there are differences, they are usually pointed out in the docs. There is a section called “Alphabetical Listing of Classes” and it includes everything that wx.Widgets does (it does not include everything that wx.Python does, but that is being worked on).
Along with the docs, the demo provides examples of most supported classes, shows source interactively, and even allows you to modify it in situ to see whta the changes will do.
Is there a progress bar? Can I provide a graphic for it to use as its background?
There is a progress bar, and a nice one it is, but it does not support customizable graphics. It is pretty simple to make a replacement using DataContexts (wx.DC) and I’ve done it in the past (was rather crude looking but the customer liked it).
Finally, PyQt has a mechanism for handling signals that I like very much. I can specify how to handle events related to the GUI and specify my own signals. It appears that wxPython has a similar capability. Is this true? Does it have any limitations compared to Qt?
There are two approaches to signal handling. The mainstream one is that which binds EVENTS from certain CLASSES to certain HANDLERS. You can bind an event to multiple handlers, bind class events to themselves, and so on. The second is using a third-party library included with wx, that uses the pub-sub model.
Generating your own events is easy to do, sample code is included. Again, do it all the time, no sweat.
Hope this helps.
···
On 12/23/05, Jeffrey Barish jeff_barish@earthlink.net wrote:
–
“I never gave anybody hell. I just told the truth and the Republicans thought it was hell.”
- Harry S. Truman.
Best,
Jeff