473,402 Members | 2,050 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,402 software developers and data experts.

wx.ListCtrl.EditLabel



I have problems with this method.

I have programmed this wx.Listctrl:

self.ListCtrlMarks = wx.ListCtrl(self.panel, -1, style = wx.LC_REPORT)

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

self.ListCtrlMarks.InsertColumn(0, "Name")
self.ListCtrlMarks.InsertColumn(1, "Note")
self.ListCtrlMarks.InsertColumn(2, "Film")
self.ListCtrlMarks.InsertColumn(3, "Init")
self.ListCtrlMarks.InsertColumn(4, "End")

self.ListCtrlMarks.SetColumnWidth(1, 80)
self.ListCtrlMarks.SetColumnWidth(2, 80)
self.ListCtrlMarks.SetColumnWidth(3, 40)
self.ListCtrlMarks.SetColumnWidth(4, 40)

later i introduced values in each column.
What i want to programm is :
- when i select the row and i press a button called "Change Name"
i wanto to can edit the Name and introduce the new value.

I tried it with:(the next code lines are in the function that is
called when the buttton "Change Name" is pressed.)

# I get the row selected index
self.currentIdx=self.ListCtrlMarks.GetNextItem(-1,
wx.LIST_NEXT_ALL,wx.LIST_STATE_SELECTED)

self.ListCtrlMarks.EditLabel(self.currentIdx)

I thought that so it would work. But does not work.
Don't let me to edit new Name Value
Thank you

--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

May 10 '06 #1
0 1450

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 programmed this code: # self ist a panel self.partListCtrlMarks = 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
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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,...

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.