Re: wxpython-wx.CheckListBox: changing item bacgkground color

2008-01-14 Thread Mike
On Jan 13, 9:22 am, Massi <[EMAIL PROTECTED]> wrote: > Hi everyone! In my application (under windows) I'm using a > wx.checklistbox. I would like the background color of an item to > become red whenever an EVT_LISTBOX_DCLICK occurs. Is there any simple > way to achieve

wxpython-wx.CheckListBox: changing item bacgkground color

2008-01-13 Thread Massi
Hi everyone! In my application (under windows) I'm using a wx.checklistbox. I would like the background color of an item to become red whenever an EVT_LISTBOX_DCLICK occurs. Is there any simple way to achieve it? Thanks in advance. -- http://mail.python.org/mailman/listinfo/python-list

Re: wx.checklistbox

2006-04-03 Thread luca72
I have solve in this way i'm sure it's not the best, but it works: lista1leggi = open('/lista1.txt', 'r') mt = lista1leggi.readlines() lunghezzamt = len(mt) lucianino = 0 while lucianino < (lunghezzamt - 1): if mt[lucianino] == '\n': del

Re: wx.checklistbox

2006-04-03 Thread luca72
Hello Frefrik It works but sometimes it insert a blank row so the file is like: item1 item2 item3 item4 etc.. I don't inderstand why. But supposing that we can't solve this, is it possible to delete blanlk items in the checkListBox? -- http://mail.python.org/mailman/listinfo/python-list

Re: wx.checklistbox

2006-04-01 Thread luca72
Thank Fredrik I try and then i will inform you Luca -- http://mail.python.org/mailman/listinfo/python-list

Re: wx.checklistbox

2006-04-01 Thread Fredrik Lundh
"luca72" wrote: > i have again one simple problem: > the script is this: > > def output(self): > global lista2 > lista2 = open('/lista2', 'w') > iteminlista2 = self.checkListBox2.GetStrings() > lista2.writelines(iteminlista2) > > def input1(self): > li

Re: wx.checklistbox

2006-04-01 Thread Philippe Martin
Hi, I do not see where you close the file: I beleve you need to close it to flush information prior to reading again. Philippe luca72 wrote: > i have again one simple problem: > the script is this: > > def output(self): > global lista2 > lista2 = open('/lista2', 'w') >

Re: wx.checklistbox

2006-04-01 Thread luca72
i have again one simple problem: the script is this: def output(self): global lista2 lista2 = open('/lista2', 'w') iteminlista2 = self.checkListBox2.GetStrings() lista2.writelines(iteminlista2) def input1(self): lista2leggi = open('/lista2', 'r')

Re: wx.checklistbox

2006-03-31 Thread luca72
sorry appenditems -- http://mail.python.org/mailman/listinfo/python-list

Re: wx.checklistbox

2006-03-31 Thread luca72
I have solved with appen.items() Regards Luca -- http://mail.python.org/mailman/listinfo/python-list

Re: wx.checklistbox

2006-03-31 Thread luca72
Sorry Philippe is a Wx.checklistbox -- http://mail.python.org/mailman/listinfo/python-list

Re: wx.checklistbox

2006-03-31 Thread Philippe Martin
Not sure I understand: a wx.CheckBox has up to three states (on, off ... does not apply/greyed) Is that what you read from your file ? Philippe luca72 wrote: > Hello > I write one file using:...(i think that is ok for write all the > lines of my list) > luca = open('/tmp/luca', 'w') > luc

wx.checklistbox

2006-03-31 Thread luca72
Hello I write one file using:...(i think that is ok for write all the lines of my list) luca = open('/tmp/luca', 'w') luca.writelines(list) when i open the application again i use: leggi = open('/tmp/luca', 'r') leggi.readlines() How can i store this line in to a wx.checkbox. Thanks Luc