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 ).
Parameter Type Description item wx.TreeItemId item that we want to ensure to be visible.