I have been working for some days now on a couple of new widgets. If someone is interested in how this widget looks like, you can find a screenshot here:
The code is still with few comments and no docstrings. But if the community/NG thinks that it may be useful, I’ll try to do my best to add whistles and bells in order to have a good-looking class.
On Tue, 16 May 2006 17:43:16 +0100 "Gavana, Andrea" <gavana@kpo.kz> wrote:
Hello NG,
I have been working for some days now on a couple of new widgets. If someone is interested in how this widget looks like, you can find a screenshot here:
The code is still with few comments and no docstrings. But if the community/NG thinks that it may be useful, I'll try to do my best to add whistles and bells in order to have a good-looking class.
I have been working for some days now on a couple of
new widgets. If someone is interested in how this widget
...
The code is still with few comments and no docstrings. But
if the community/NG thinks that it may be useful, I'll try
to do my best to add whistles and bells in order to have a
good-looking class.
Yes, please do.
Karsten
···
On Tue, May 16, 2006 at 05:43:16PM +0100, Gavana, Andrea wrote:
--
GPG key ID E4071346 @ wwwkeys.pgp.net
E167 67FD A291 2BEA 73BD 4537 78B9 A9F9 E407 1346
I love the custom background -- maybe it's just distracting eye candy, but i imagine someone will find a very good use for it.
-Chris
Gavana, Andrea wrote:
···
Hello NG,
I have been working for some days now on a couple of new widgets. If someone is interested in how this widget looks like, you can find a screenshot here: http://xoomer.virgilio.it/infinity77/CustomTree.JPG
The code is still with few comments and no docstrings. But if the community/NG thinks that it may be useful, I'll try to do my best to add whistles and bells in order to have a good-looking class.
Thanks for every comment.
Andrea.
I love the custom background – maybe it’s just distracting eye candy,
but i imagine someone will find a very good use for it.
Yeah, I agree 100% with you. Well, I put that picture only because it reminds me a very nice holyday . In any case, if you can design a background image that is smoother and less heterogeneous than a picture of mine at sea, I think it would be nice to have a TreeCtrl with a different background than a single-colour one
Hi Andrea, it looks nice. Will it support a TreeListCtrl too?
Well, this was my second thought after I startet to implement this class. I don’t like very much the current look of TreeListCtrl, the icons/items are not very well aligned. However, it is a very useful class.
Noting that CustomTree is an owner-drawn wx.TreeCtrl, there are a couple of solutions, each of them carrying their implementation problems:
Implementing an owner-drawn ListCtrl and couple it with CustomTreeCtrl. This will give you the maximum power of the two controls together. Obviously, wx.ListCtrl is quite a mess right now (in the API sense), so this step will require a big amount of work.
Adapting the existent wx.TreeListCtrl source code to wxPython. This is where I was starting before.
These are the solutions I can think of. However, CustomTree has the ability to attach to an item whatever control you like, and also to use a multiline text for a tree item. I would love to do the same thing for a ListCtrl, but coupling them will become quite complicated because the height of a row in TreeListCtrl (that is the maximum between the height of the CustomTree item and the ListCtrl “cells” relative to that row) will be complex to calculate. For the moment, I think I will move on solution 2, but I am still unsure.
–
“Imagination Is The Only Weapon In The War Against Reality.”