ListCtrl custom requirements

Hi,

Here are my requirements:

  1. Readble Columns No, Id, Type, Price
  2. Editable Columns Product, Qty
  3. Insert a custom TextCtrl when click on Product (for auto-complete)
  4. Increase height of rows. (height = height of Default TextCtrl)
  5. When product is entered move/jump cursor to Qty cell.
  6. When Qty is entered, move cursor to next row’s product cell.

If ListCtrl’s cell can provide me these events then I don’t need to

attach my custom auto-complete textctrl in cell.

  1. wx.EVT_TEXT
  2. wx.EVT_KILL_FOCUS
  3. wx.EVT_KEY_DOWN
  4. wx.EVT_TEXT_ENTER # When enter key is pressed
    I am also open for other widgets like Grid, ObjectListView or UltimateListCtrl.

wxPython 2.8.12.1

Windows

Cheers

list-edit.py (3.57 KB)

ObjectListView / ListCtrl provides most of these features, although the row height stuff can be tricky. You might have to create a pop-up text control too if you don’t like the built-in way of editing the “cells”. On the other hand, UltimateListCtrl is pure Python and supports embedding of other controls, such as the text control. It is also easier to hack / enhance since it’s Python!

  • Mike
···

On Tuesday, July 3, 2012 1:20:24 AM UTC-5, Prashant wrote:

Hi,

Here are my requirements:

  1. Readble Columns No, Id, Type, Price
  2. Editable Columns Product, Qty
  3. Insert a custom TextCtrl when click on Product (for auto-complete)
  4. Increase height of rows. (height = height of Default TextCtrl)
  5. When product is entered move/jump cursor to Qty cell.
  6. When Qty is entered, move cursor to next row’s product cell.