python中listctrl控件排序,里面的数据映射是咋回事,数据字典的组织形式呢?网上的资料,都是不附带字典的

python中listctrl控件排序,里面的数据映射是怎么回事,数据字典的组织形式呢?网上的资料,都是不附带字典的
该怎么设置listctrl中的数据,求大神指点
------解决方案--------------------
import wx
import wx.lib.mixins.listctrl as listmix
 
musicdata = {
0 : ("Bad English", "The Price Of Love", "Rock"),
1 : ("DNA featuring Suzanne Vega", "Tom's Diner", "Rock"),
2 : ("George Michael", "Praying For Time", "Rock"),
3 : ("Gloria Estefan", "Here We Are", "Rock"),
4 : ("Linda Ronstadt", "Don't Know Much", "Rock"),
5 : ("Michael Bolton", "How Am I Supposed To Live Without You", "Blues"),
6 : ("Paul Young", "Oh Girl", "Rock"),
}
 
########################################################################
class TestListCtrl(wx.ListCtrl):
 
    #----------------------------------
    def __init__(self, parent, ID=wx.ID_ANY, pos=wx.DefaultPosition,
                 size=wx.DefaultSize, style=0):
        wx.ListCtrl.__init__(self, parent, ID, pos, size, style)
 
########################################################################
class TestListCtrlPanel(wx.Panel, listmix.ColumnSorterMixin):
 
    #----------------------------------
    def __init__(self, parent):
        wx.Panel.__init__(self, parent, -1, style=wx.WANTS_CHARS)
 
        self.index = 0
 
        self.list_ctrl = TestListCtrl(self, size=(-1,100),
                         style=wx.LC_REPORT
                         
------解决方案--------------------
wx.BORDER_SUNKEN
                         
------解决方案--------------------
wx.LC_SORT_ASCENDING
                         )
        self.list_ctrl.InsertColumn(0, "Artist")
        self.list_ctrl.InsertColumn(1, "Title", wx.LIST_FORMAT_RIGHT)
        self.list_ctrl.InsertColumn(2, "Genre")
 
        items = musicdata.items()
        index = 0
        for key, data in items:
            self.list_ctrl.InsertStringItem(index, data[0])
            self.list_ctrl.SetStringItem(index, 1, data[1])