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.