grid cell editable at single-click

Got the answer myself:

from wxPython.lib.mixins.grid import wxGridAutoEditMixin

class TimGrid(wxGrid, wxGridAutoEditMixin):
    def __init__(*arg,**kw):
        wxGrid.__init__(*arg,**kw)
        self = arg[0]
        wxGridAutoEditMixin.__init__(self)
        [...]

Cristina.

···

-------------------------------------------------------
Xnet scaneaza automat toate mesajele impotriva virusilor folosind RAV AntiVirus.
Xnet automatically scans all messages for viruses using RAV AntiVirus.

Nota: RAV AntiVirus poate sa nu detecteze toti virusii noi sau toate variantele lor.
Va rugam sa luati in considerare ca exista un risc de fiecare data cand deschideti
fisiere atasate si ca MobiFon nu este responsabila pentru nici un prejudiciu cauzat
de virusi.

Disclaimer: RAV AntiVirus may not be able to detect all new viruses and variants.
Please be aware that there is a risk involved whenever opening e-mail attachments
to your computer and that MobiFon is not responsible for any damages caused by
viruses.

C. Iacob wrote:

Got the answer myself:

from wxPython.lib.mixins.grid import wxGridAutoEditMixin

class TimGrid(wxGrid, wxGridAutoEditMixin):
    def __init__(*arg,**kw):
        wxGrid.__init__(*arg,**kw)
        self = arg[0]
        wxGridAutoEditMixin.__init__(self)
        [...]

Cristina.

This isn't quite the same as what you asked for, but perhaps is what you want. The AutoEdit mixin will turn on the editor even when tabbing into a cell, not just when you click on it.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!