我很好奇如何将特定目录中的图像插入 Ultimatelistctrl 中的特定行/列
MainFrame.ultimatelist = ULC.UltimateListCtrl( self.panel , agwStyle = wx.LC_REPORT | wx.LC_VRULES | wx.LC_HRULES , pos = (10,100) , size = (1240 , 520) )
#-------------------------------------------------------------
MainFrame.FirstColumn = ULC.UltimateListItem()
MainFrame.FirstColumn._mask = wx.LIST_MASK_TEXT | wx.LIST_MASK_IMAGE | wx.LIST_MASK_FORMAT | ULC.ULC_MASK_CHECK
MainFrame.FirstColumn._image = []
MainFrame.FirstColumn._format = 1
MainFrame.FirstColumn._kind = 1
MainFrame.FirstColumn._text = ""
MainFrame.ultimatelist.InsertColumnInfo( 1 , MainFrame.FirstColumn)
MainFrame.arrowicon = wx.Image( "arrow.jpg" , wx.BITMAP_TYPE_ANY).ConvertToBitmap()
MainFrame.ultimatelist.SetImage( 0 , MainFrame.arrowicon )
干杯,这真的很困扰我:)