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
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
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
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
Thank Fredrik
I try and then i will inform you
Luca
--
http://mail.python.org/mailman/listinfo/python-list
"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
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')
>
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')
sorry
appenditems
--
http://mail.python.org/mailman/listinfo/python-list
I have solved with appen.items()
Regards
Luca
--
http://mail.python.org/mailman/listinfo/python-list
Sorry Philippe
is a Wx.checklistbox
--
http://mail.python.org/mailman/listinfo/python-list
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
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
13 matches
Mail list logo