Latest Widget...

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.

···

Andrea Gavana
(gavana@kpo.kz)

Reservoir Engineer

KPDL

4, Millbank

SW1P 3JA London

Direct Tel: +44 (0) 20 717 08936

Mobile Tel: +44 (0) 77 487 70534

Fax: +44 (0) 20 717 08900

Web:
http://xoomer.virgilio.it/infinity77

¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯

Congratilations Andrea !! It look's so fine !

···

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:

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.

_________________________________________

Andrea Gavana (gavana@kpo.kz)

Reservoir Engineer

KPDL

4, Millbank

SW1P 3JA London

Direct Tel: +44 (0) 20 717 08936

Mobile Tel: +44 (0) 77 487 70534

Fax: +44 (0) 20 717 08900

Web: http://xoomer.virgilio.it/infinity77

¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯

    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

Very cool!

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.

_________________________________________

Andrea Gavana (gavana@kpo.kz)

Reservoir Engineer

KPDL

4, Millbank

SW1P 3JA London

Direct Tel: +44 (0) 20 717 08936

Mobile Tel: +44 (0) 77 487 70534

Fax: +44 (0) 20 717 08900

Web: http://xoomer.virgilio.it/infinity77

¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯

--
Christopher Barker, Ph.D.
Oceanographer
                                         
NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

Chris.Barker@noaa.gov

Gavana, Andrea:

http://xoomer.virgilio.it/infinity77/CustomTree.JPG

Hi Andrea, it looks nice. Will it support a TreeListCtrl too?

Thanks, Frank

Hello NG,

thank you for your comments.

Very cool!

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 :slight_smile: . 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 :slight_smile:

···

On 5/16/06, Christopher Barker Chris.Barker@noaa.gov wrote:

On 5/16/06, Frank Niessink frank@niessink.com wrote:

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:

  1. 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.

  2. 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.”

http://xoomer.virgilio.it/infinity77/