Hi List,
I have a pretty nasty problem. We are using a hypertreelist but it does not behave as expected. The first thing is that the lines are much wider than intended. The second and more serious problem is that scrolling goes line by line and is terribly slow. The screenshots illustratie this problem. The first is how it should be, the second is how it is currently
I suspect that somewhere in the data there is something that triggers this behaviour. But I have no clue where to look. The problem is that this is in a live situation where people aren’t able to work…
Thanks a lot in advance
D.J. Kniep


Extra info:
wxpython Version 2.8.12.1
Ubuntu 12.04
···
Op donderdag 2 mei 2013 12:41:05 UTC+2 schreef Dick Kniep het volgende:
Hi List,
I have a pretty nasty problem. We are using a hypertreelist but it does not behave as expected. The first thing is that the lines are much wider than intended. The second and more serious problem is that scrolling goes line by line and is terribly slow. The screenshots illustratie this problem. The first is how it should be, the second is how it is currently
I suspect that somewhere in the data there is something that triggers this behaviour. But I have no clue where to look. The problem is that this is in a live situation where people aren’t able to work…
Thanks a lot in advance
D.J. Kniep
Hi Andrea,
Thanks a lot for your reaction.
After posting the message I applied TR_HAS_VARIABLE_ROW_HEIGHT and that solved the problem of the row height. But I have not seen any row that has another row height, so it makes me wonder why this occurs in the first place.
However the scrolling is still a problem. It is a huge program (part of an application of 600000+ lines of code) and the program that has the problem cannot be easily taken out. Formerly I used a wx.TreeListCtrl and that gave no problems with scrolling (but crashed sometimes with a segmentation fault!). I think the real problem is the size. I load the complete tree before the screen is shown. Typically some 1400 items are in the tree and that works pretty good. However some users may have 10000+ items in the tree. For those users the problem is very real.
So I think I will have to redesign the application to load only the parts of the tree that are visible and discard the items that are collapsed. Unless you have another idea?
Cheers,
D. Kniep
···
Op donderdag 2 mei 2013 14:00:32 UTC+2 schreef Infinity77 het volgende:
Hi,
On 2 May 2013 12:41, Dick Kniep wrote:
Hi List,
I have a pretty nasty problem. We are using a hypertreelist but it does not behave as expected. The first thing is that the lines are much wider than intended. The second and more serious problem is that scrolling goes line by line and is terribly slow. The screenshots illustratie this problem. The first is how it should be, the second is how it is currently
I suspect that somewhere in the data there is something that triggers this behaviour. But I have no clue where to look. The problem is that this is in a live situation where people aren’t able to work…
I can’t comment that much without seeing a sample app, but:
- Are you using the
TR_HAS_VARIABLE_ROW_HEIGHT
style in the constructor?
- How are you assigning the lines background/foreground colours/fonts?
- How many items do you have in your typical HyperTreeList?
If you could provide a simple sample app reproducing the problem that would be most helpful. I am not an Ubuntu person but I’ll try a few fixes if there is indeed a problem.
Andrea.
“Imagination Is The Only Weapon In The War Against Reality.”
http://www.infinity77.net
-------------------------------------------------------------
def ask_mailing_list_support(email):
if mention_platform_and_version() and include_sample_app():
send_message(email)
else:
install_malware()
erase_hard_drives()
-------------------------------------------------------------
Dick,
The usual solution to the large number of items problem is to switch
to Virtual Mode - create methods that will give you the total number
of lines, the controls that represent the lines in a given range and
a couple of others then switch your hyper list control to virtual
mode and you are laughing as you only need to have those actual
controls existing for the lines that are on the screen - unless it
is a really BIG screen then you will not have 1000s of them.
Gadget/Steve
···
On 03/05/13 09:44, Dick Kniep wrote:
Hi Andrea,
Thanks a lot for your reaction.
After posting the message I applied
TR_HAS_VARIABLE_ROW_HEIGHT and that solved the problem of the
row height. But I have not seen any row that has another row
height, so it makes me wonder why this occurs in the first
place.
However the scrolling is still a problem. It is a huge
program (part of an application of 600000+ lines of code) and
the program that has the problem cannot be easily taken out.
Formerly I used a wx.TreeListCtrl and that gave no problems with
scrolling (but crashed sometimes with a segmentation fault!). I
think the real problem is the size. I load the complete tree
before the screen is shown. Typically some 1400 items are in the
tree and that works pretty good. However some users may have
10000+ items in the tree. For those users the problem is very
real.
So I think I will have to redesign the application to load
only the parts of the tree that are visible and discard the
items that are collapsed. Unless you have another idea?
Cheers,
D. Kniep
Op donderdag 2 mei 2013 14:00:32 UTC+2 schreef Infinity77 het
volgende:
Hi,
On 2 May 2013 12:41, Dick Kniep
wrote:
Hi
List,
I have a pretty nasty problem. We are using a
hypertreelist but it does not behave as expected.
The first thing is that the lines are much wider
than intended. The second and more serious problem
is that scrolling goes line by line and is terribly
slow. The screenshots illustratie this problem. The
first is how it should be, the second is how it is
currently
I suspect that somewhere in the data there is
something that triggers this behaviour. But I have
no clue where to look. The problem is that this is
in a live situation where people aren’t able to
work…
I can't comment that much without seeing a sample
app, but:
1. Are you using the ``TR_HAS_VARIABLE_ROW_HEIGHT``
style in the constructor?
2. How are you assigning the lines
background/foreground colours/fonts?
3. How many items do you have in your typical
HyperTreeList?
If you could provide a simple sample app
reproducing the problem that would be most helpful. I
am not an Ubuntu person but I’ll try a few fixes if
there is indeed a problem.
Andrea.
"Imagination Is The Only Weapon In The War Against
Reality."
[http://www.infinity77.net](http://www.infinity77.net)
# ------------------------------------------------------------ -
def ask_mailing_list_support(email):
if mention_platform_and_version() and
include_sample_app():
send_message(email)
else:
install_malware()
erase_hard_drives()
# ------------------------------------------------------------ -
–
You received this message because you are subscribed to the Google
Groups “wxPython-users” group.
To unsubscribe from this group and stop receiving emails from it,
send an email to .
For more options, visit .
–
Steve Gadget Barnes
wxpython-users+unsubscribe@googlegroups.com
https://groups.google.com/groups/opt_out