[wxPython] wxGrid Code

Almost all the wxGrid code is on the TransfeGrid Class

class TranfeGrid(wxGrid):
    def __init__(self, parent,ta_lista,tc_lista,size):
    def SetData(self,data):

here:
ta_lista is a list with numbers that became rows headers
tc_lista is a list with numbers that became columns headers
size is the size of the widget a (w,h) pair.
data is a list of list or a list of tuples. This must have the same number
of rows
than len(ta_lista) and the same number of columns that len(tc_lista)

this is a simple grid with a fixed number of rows and columns with a helper
(SetData)
to change the cells values. This is readonly for the user.

I hope this can help

Cristian

···

-----Original Message-----
From: phawkins@connact.com [SMTP:phawkins@connact.com]
Sent: Wednesday, May 23, 2001 1:29 PM
To: wxpython-users@lists.wxwindows.org
Subject: Re: [wxPython] My first problem with wxPython 2.3

I'd send this offlist, but cer@transelec.cl bounces (see below)

Thanks, Cristian, for sending me your code;
that's a nice little demo app.

I've been wrestling with grids, so anytime someone posts grid code,
I've had a look at how they do what they do.

--Patricia