[wxPython] wxTreeCtrl items number problem

Hi,

I am using wxTreeCtrl, it’s cute but have a problem !!

when the number of sub-items exceed 2184 items i have a strange behavior !!!

when I try to select the 218x item by typing the key down it wraps to the begining of the list !!!

difficult to explain ! my english is bad !!!

just take my example in attachement and you will see !!!

any idea !??

please help !

wxtreectrl.py (7.2 KB)

···

Chat with friends online, try MSN Messenger: Click Here

Hi,
I am using wxTreeCtrl, it's cute but have a problem !!
when the number of sub-items exceed 2184 items i have a strange behavior

!!!!!

when I try to select the 218x item by typing the key down it wraps to the

begining of the list !!!!

difficult to explain ! my english is bad !!!
just take my example in attachement and you will see !!!
any idea !??

Platform and version?

···

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

When I run your application everything appears to work fine.

If I expand all nodes then I go through 0-a-2183, 0-a-2184, 0-b-0, 0-b-1,
...

If I then collapse item 0-b the cursor moves from 0-b upwards to 0-a-2184,
0-a-2183, ... and downwards to 0-b, 1, 1-a, ...

Is this what you were expecting, or do you want the tree to expand
autamatically as you move through it with the arrow keys.

I'm using Windows 2000 with Python 2.2 and wxPython 2.3.3pre3.

regards
Steve

···

--
-----------------------------------------------------------------------
Steve Holden http://www.holdenweb.com/
Python Web Programming http://pydish.holdenweb.com/pwp/
-----------------------------------------------------------------------

----- Original Message -----
From: Fawaz Ali
To: wxpython-users@lists.wxwindows.org
Sent: Tuesday, May 14, 2002 10:43 AM
Subject: [wxPython] wxTreeCtrl items number problem

Hi,
I am using wxTreeCtrl, it's cute but have a problem !!
when the number of sub-items exceed 2184 items i have a strange behavior
!!!!!
when I try to select the 218x item by typing the key down it wraps to the
begining of the list !!!!
difficult to explain ! my english is bad !!!
just take my example in attachement and you will see !!!
any idea !??
please help !

Chat with friends online, try MSN Messenger: Click Here

Fawaz Ali wrote:

Hi,

I am using wxTreeCtrl, it's cute but have a problem !!

when the number of sub-items exceed 2184 items i have a strange behavior !!!!!

when I try to select the 218x item by typing the key down it wraps to the begining of the list !!!!

difficult to explain ! my english is bad !!!

just take my example in attachement and you will see !!!

I tried your example on Win98SE, Python 1.5.2, wxPython 2.3.2.1 and on Mandrake Linux, Python 2.1, wxPython 2.3.2.1, wxGTK 2.3.2-1.

On Windows, it seemed to work fine. The last sub-sub-item in 0-a is 2184, and pressing down moves to 0-b.

On Linux, the OnSelChanged text in the right panel indicates the same behaviour. However, the display of the tree scrolls back to the beginning when I try to hit down from 0-a-1817 to get to 0-a-1818. Nor can I use the scrollbar to manually display the rest of the tree below 0-a-1818. The right panel still says that 0-a-1818 is selected (correctly). Is that what you meant when you said "it wraps to the beginning of the list"?

Also, there are numerous other problems with the display of the tree. For example, if you expand 0-b and then 0-a, the contents of 0-a are obscured by 0-b-1454, 1455, ...

Not sure why this happens.

David