wxPython – EnsureVisible() method in wx.TreeCtrl
In this article we are going to learn about EnsureVisible() function associated with wx.TreeCtrl class of wxPython. EnsureVisible() method makes an item/root to be visible on screen. Scrolls and/or expands items to ensure that the given item is visible.
This method can be used, and will work, even while the window is frozen (see wx.Window.Freeze ).
Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.
To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course. And to begin with your Machine Learning Journey, join the Machine Learning - Basic Level Course
Parameter Type Description item wx.TreeItemId item that we want to ensure to be visible.