-
Notifications
You must be signed in to change notification settings - Fork 536
Major speedups and bug fixes to CustomTreeCtrl and HyperTreeList #2088
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Fixes wxWidgets#2083, wxWidgets#2081, wxWidgets#1981, wxWidgets#1938, wxWidgets#1901, wxWidgets#1898, wxWidgets#1880, wxWidgets#1293 Runs 10-100x faster while using slightly more memory. Adds a new style `TR_LIVE_UPDATE` to show column resizing live rather than drawing a preview line. Bump version from 1.4 to 1.5
wx/lib/agw/customtreectrl.py
Outdated
memory.DrawLabel(self._text, textrect) | ||
|
||
memory.SelectObject(wx.NullBitmap) | ||
|
||
# Gtk and Windows unfortunately don't do so well with transparent | ||
# Gtk and Windows unfortunatly don't do so well with transparent |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems like you overwrote a bunch of spelling fixes that were made.
This pull request has been mentioned on Discuss wxPython. There might be relevant details there: |
wx/lib/agw/customtreectrl.py
Outdated
.. versionadded:: 2.8 | ||
""" | ||
if not isinstance(text, six.text_type): | ||
if isinstance(text, six.binary_type): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please remove uses of six
? We've removed six as a dependency.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@swt2c Are you going to consider this PR, or my replacement?
Improve speed of controls especially with a large number of items. Up to 10 - 100x speedup. Issues were:
CustomTreeCtrl version bump from 2.7 to 2.8
HyperTreeList version bump from 1.4 to 1.5
Fixes #2006
Fixes #1938
Fixes #1395
Fixes #2083
Fixes #2081
Fixes #1981
Fixes #1938
Fixes #1901
Fixes #1898
Fixes #1880
Fixes #1293