How to have wxALIGN_RIGHT and WXK_RETURN work in a grid?

About 1:

It should be wx.ALIGN_RIGHT,wx.ALIGN_CENTRE

not wx.grid.ALIGN_RIGHT, wx.grid.ALIGN_CENTRE

···

On 3/21/07, DomDom BestDomDom@neuf.fr wrote:

Hello,

  1. I try to align right the content of cells in a grid but I get an error:

"AttributeError: ‘module’ object has no attribute ‘ALIGN_RIGHT’ ".

The code line that gives this error is:

self.grid.SetCellValue(3,1,“BlaBlaBla”)

self.grid.SetCellAlignment(3,1,wx.grid.ALIGN_RIGHT,wx.grid.ALIGN_CENTRE)

  1. In the demo, when I run the file GridEnterHandler.py and try to press the Enter key in the first cell of the grid (cell(0,0)), nothing happens and the console returns an error (“TypeError:‘int’ object is not callable”)

Any ideas to have this work?

Thanks in advance

Dominique