Repository navigation
Update treenodehandlers.py to prevent freeze ups - #2205
Conversation
The _ActionHandler class is based off wx.Window which causes a native widget to be created. Avoid adding this native window to the tree to prevent Windows OS freezes when the tree is scrolled. Add it to the tree's parent instead. Looks like the only wx.Window feature utilized is for popup menus when a tree item is right-clicked. Attempts to fix robotframework#1843.
HelioGuilherme66
left a comment
There was a problem hiding this comment.
Although the change looks harmless, there is a situation where the right-click menu and tests content becomes unusable. If you start RIDE with Tree hidden/closed, and open a test suite folder, then when restored the Tree, right-clicking does not show the menu, and expanding test suites does not show test cases. Because it breaks this function, this PR cannot be merged.
|
Thank you @cbeytas for the PR. In the future, please create a branch for the modifications and PR, it helps organizing code merging and history of changes. You can do this very easily after updating |
Based on my observations, this occurs only when RIDE starts with Tree floating or it was floating previously and it was hidden afterwards. Can you confirm? If that's the case, then one simple solution would be to force RIDE to always start with the Tree docked. @cbeytas |
This is a problem of Tree panel, the implementation is not the best because the tree is only created at init time. The update tree is not working well. I would not like to go back to the static position of tree panel. Best is to fix the tree update and refresh (messaging trigger). |
|
Thank you for the PR, I am going to merge because at least removed GTK error messages. |
The _ActionHandler class is based off wx.Window which causes a native widget to be created. Avoid adding this native window to the tree to prevent Windows OS freezes when the tree is scrolled. Add it to the tree's parent instead.
Looks like the only wx.Window feature utilized is for popup menus when a tree item is right-clicked.
Attempts to fix #1843.