|
Hi:
I need to know how to remove an item from a
Clist but using the mouse, for example, I select the item with the mouse and
then I press the "delete" button and the item of the Clist is delete, how do I
do this???
I did the folowing:
win.listmon.connect("select_row", win.mouse_sel)
def mouse_sel(win,listmon,row,column,data=""> return row Then I connect delete button with the function delete: win.buttondel.connect("clicked", win.delete,win.mouse_sel,win.mouse_sel) def delete(win,clistmon,row,column,data=""> print "The row to delete is :" print row win.listmon.remove(row) return I did that but the parameter "row" to the function isnt row, is another thing, what did Ido wrong, explain me more and tell me how to do the right thing, i�m new in Py GTK and I�m lost, I need to do this job for tomorrow, thanks for your help. Please answer me to the e-mail. Thanks a lot Oscar |
- Re: [pygtk] Removing for now Oscar Lopez
- Re: [pygtk] Removing for now John K Luebs
- Re: [pygtk] Removing for now John K Luebs
