请看看帮忙这段代码,我要添加一个列表到窗体listctrl中

请看看帮忙这段代码,我要添加一个列表到窗体listctrl中

下面是用boa编的一个窗体代码,我要把列表list=["thank","you","help"],在点击button1后添加到listctrl1中显示

请问def OnButton1LeftUp(self, event):下面我应该怎么写,

#Boa:Frame:wxFrame1

from wxPython.wx import *

def create(parent):
    return wxFrame1(parent)

[wxID_WXFRAME1BUTTON1, wxID_WXFRAME1LISTCTRL1, wxID_WXFRAME1] = map(lambda _init_ctrls: wxNewId(), range(3))

class wxFrame1(wxFrame):
    def _init_utils(self):
        pass

    def _init_ctrls(self, prnt):
        wxFrame.__init__(self, size = wxSize(360, 304), id = wxID_WXFRAME1, title = 'wxFrame1', parent = prnt, name = '', style = wxDEFAULT_FRAME_STYLE, pos = wxPoint(333, 235))
        self._init_utils()

        self.button1 = wxButton(label = 'list', id = wxID_WXFRAME1BUTTON1, parent = self, name = "list", size = wxSize(60, 25), style = 0, pos = wxPoint(263, 10)
        EVT_LEFT_UP(self.button1, self.OnButton1LeftUp)

        self.listctrl1 = wxListCtrl(size = wxSize(200, 250), id = wxID_WXFRAME1LISTCTRL1, parent = self, name = "listCtrl1", style = 0, pos = wxPoint(10, 10))

    def __init__(self, parent):
        self._init_ctrls(parent)

    def OnButton1LeftUp(self, event):
        pass
  
谢谢!!!!!!
import sys
index = self.listctrl1.InsertStringItem(sys.maxint, list[0])
self.listctrl1.SetStringItem(index, 1, list[1])
self.listctrl1.SetStringItem(index, 2, list[2])

另wxPython的demo有好多的例子为什么不看一下呢?
太感谢了
index = self.listctrl1.InsertStringItem(sys.maxint, "hello")
        self.listctrl1.SetStringItem(index, 1, "hi")
        self.listctrl1.SetStringItem(index, 2, "ok")
不好意思
我把这段代码添加进去之后
为什么只显示第一个"hello"
我看了看,因为你的list只有一列,自然只能加入一个值了。还是看demo的代码吧。