Writing my own components?

Hi,

Is it possible to write my own components or "skin" the old ones with wxPython? I know it's possible in C++ with wxWindows (Audacity, for example, has some custom component, and I think I have seen some skinnable IM-prog too). I heard that doing this in Python might be too slow, but is it technically possible? (I'll worry about the slowness later. :wink: )

路路路

--
Pekka Kujansuu

Kujansuu Pekka wrote:

Hi,

Is it possible to write my own components or "skin" the old ones with
wxPython? I know it's possible in C++ with wxWindows (Audacity, for
example, has some custom component, and I think I have seen some
skinnable IM-prog too). I heard that doing this in Python might be
too slow, but is it technically possible? (I'll worry about the
slowness later. :wink: )

It depends on what you want your component to do. If it's a simple widget then no problem, there are even a few of them in wxPython/lib. More complex things are certainly possible as well, and in most cases the speed issues can be worked around. So to answer your question, there is nothing in wxPython that would prevent you from writing your own.

"Skining" of existing controls on the other hand is not easily possible. C++ has the wxUniv port that self-draws everything, and that can use custom rederers and such but wxPython does not work with wxUniv yet.

路路路

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!