gridlib and cell choice editor

Hey Guys,
I am fairly new to wxpython. Some of you might have seen some of the questions that I posted on stackoveflow. I want to ask about the grid lib today.

You know the control, wx.DatePickerCtrl, how can i enter that control into a cell in gridlib?

myGrid = gridlib.Grid(panel)

myGrid.CreateGrid(5, 9)

and then

myGrid.SetCellFormat(i, j, wxDatePickerCtrl)

Thanks

Can

Can Baran wrote:

Hey Guys,
I am fairly new to wxpython. Some of you might have seen some of the
questions that I posted on stackoveflow. I want to ask about the grid
lib today.
You know the control, wx.DatePickerCtrl, how can i enter that control
into a cell in gridlib?

The Grid class uses a concept of plugin editors and renderers for editing the values in the cells and for drawing the contents of the cells. To add the ability to edit a cell value with a DatePickerCtrl then you need to make a GridCellEditor class for it. There are some examples in the demo that you can use as a starting point.

···

--
Robin Dunn
Software Craftsman

Thanks, where do you think i can find the code for the following example:

http://wiki.wxpython.org/wxGrid%20Manual

in that example you will see that there is a certain dateformat for the type of the cell. The code that generated that example is a good starting point for me i think

Can

···

On Wednesday, December 18, 2013 7:01:32 AM UTC+2, Robin Dunn wrote:

Can Baran wrote:

Hey Guys,

I am fairly new to wxpython. Some of you might have seen some of the

questions that I posted on stackoveflow. I want to ask about the grid

lib today.

You know the control, wx.DatePickerCtrl, how can i enter that control

into a cell in gridlib?

The Grid class uses a concept of plugin editors and renderers for
editing the values in the cells and for drawing the contents of the
cells. To add the ability to edit a cell value with a DatePickerCtrl
then you need to make a GridCellEditor class for it. There are some
examples in the demo that you can use as a starting point.


Robin Dunn

Software Craftsman

http://wxPython.org