changing the columns names in the spreadsheet

Hi all,

I am using the CSheet class to create a spreadsheet to display the digital values of an image (part of the code is below),

My problem is that the names of the columns goes like 'A' 'B' 'C' ... but I want to display them as numbers, as the names of the rows appear.

Is it possible to change the names of the columns from letters to numbers? How can I do it?

Thanks for your time and your help,

Ali S.

···

#######
class MySheet(CSheet):
    instance = 0
    def __init__(self, parent):
        CSheet.__init__(self, parent)
        self.SetLabelBackgroundColour('#DBD4D4')
        self.SetRowLabelAlignment(wx.ALIGN_CENTRE, wx.ALIGN_CENTRE)
        #self.text = ''
        self.Show(True)

_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar - get it now! http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/

Ali Santacruz wrote:

Hi all,

I am using the CSheet class to create a spreadsheet to display the digital values of an image (part of the code is below),

My problem is that the names of the columns goes like 'A' 'B' 'C' ... but I want to display them as numbers, as the names of the rows appear.

Is it possible to change the names of the columns from letters to numbers? How can I do it?

  theGrid.SetColLabelValue(col, text)

···

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