473,473 Members | 2,169 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Doubt with wx.ListCtrl

I have programmed this code:
# self ist a panel
self.partListCtrlMarks = wx.ListCtrl(self.panel, -1, style = wx.LC_REPORT)

self.Bind(wx.EVT_LIST_ITEM_SELECTED,self.OnSelecte dItemList,self.partListCtrlMarks)
vs.Add(self.partListCtrlMarks, 1, wx.EXPAND | wx.ALL, 4)

self.partListCtrlMarks.InsertColumn(0, "Name")
self.partListCtrlMarks.InsertColumn(1, "Note")

self.partListCtrlMarks.SetColumnWidth(1, 80)

later I have this...

idx = self.partListCtrlMarks.GetItemCount()
self.partListCtrlMarks.InsertStringItem(idx, "Can embestido")
self.partListCtrlMarks.SetStringItem(idx, 1, "De como a cabra smbiste o can")

With self.partListCtrl.GetItemText(idx) I get only "Can embestido" which is in
first column. My doubt is: How can I get the second column text "De como a
cabra smbiste o can".

--oOo-----------------------------------------------------------------oOo--

Servicio de acceso ó correo electrónico vía web da Universidade de Vigo
Servicio de acceso al correo electrónico vía web de la Universidad de Vigo

Servicios Informáticos [ http://si.uvigo.es ]
Universidade de Vigo [ http://www.uvigo.es ]

URL: https://correoweb.uvigo.es

Apr 28 '06 #1
0 901

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Piet | last post by:
Hello, I am working on a graphical MySQL Frontend written in python/wxPython. The results from a table query are displayed either in a wxGrid or in a wxListCtrl. I would prefer the latter because...
1
by: John Taylor | last post by:
I have a ListCtrl with 5 columns. The first 4 columns are either strings or integers, but the last column is a string in the format of MM-DD-YYYY. I searched google and also read over the...
0
by: Fabio Pliger | last post by:
Hi all, i'm working on a very large project using wx 2.5... On one frame i have a wx.lib.mixins.listctrl widget, wich is a listctrl extended with the possibility to edit the columns text...
3
by: ianaré | last post by:
hey, Having some problems getting wxpython apps to look right on SuSE 10.0 and KDE 3.4. There are no RPMs that i could find so I built my own from source. First time using 'default' settings -...
0
by: carlosperezs | last post by:
I have problems with this method. I have programmed this wx.Listctrl: self.ListCtrlMarks = wx.ListCtrl(self.panel, -1, style = wx.LC_REPORT) ...
0
by: Laszlo Nagy | last post by:
This is a ListCtrl descendant: class MegaListCtrl(wx.ListCtrl): <more code here....> def InsertImageStringItem(self, index, label, imageIndex): imageIndex =...
8
by: shuf | last post by:
Hello, I was wondering if anyone knows how to change the color of a selected item in a listctrl (for example, on my system a selected item is highlighted in blue). I could not find any...
1
by: vedrandekovic | last post by:
Hello, How can I Insert image with string in ListCtrl with this example: # Import ftputil module - like ftplib from ftputil import FTPHost # Create connection...
0
by: asrekdal | last post by:
Hi, I am working with a wxPython ListCtrl Control and wondering if it is possilbe to place images in the cell rather than a string? -- Andrew
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.