[Python.NET] ListView bug?

Guy Robinson guy at r-e-d.co.nz
Wed Jun 1 13:40:16 CEST 2005


Find attached script for a windows.Form. Is this a bug? When loading the data 
into the listview from a list of tuples:

data = [("one","test one"),("two","test two"), ("three","test three")]
for item in data:
     temp = WF.ListViewItem(item[0])
     temp.SubItems.Add(item[1])
     self.listView.Items.Add(temp)

The rows are filled with the first and second characters of the first string 
rather than the relevant tuple strings.

Winforms is pretty cool otherwise.

Guy

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: scriptForm.py
Url: http://mail.python.org/pipermail/pythondotnet/attachments/20050601/82cbcf90/scriptForm.ksh


More information about the PythonDotNet mailing list