wxPython – AssignImageList() method in wx.TreeCtrl
In this article, we are going to learn about AssignImageList() method associated with wx.TreeCtrl class of wxPython. AssignImageList() function is used in order to set the normal image list. The image list assigned with this method will be automatically deleted by wx.TreeCtrl as appropriate (i.e. it takes ownership of the list).
AssignImageList() takes wx.ImageList argument.
Syntax: wx.TreeCtrl.AssignImageList(self, imageList)
Parameter Input Type Description imageList wx.ImageList Image list to assign to Tree control.
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