Some questions on wxGrid

Good morrow all

I have been playing around with wxPython for a few days now and have
some questions. The wiki at wiki.wxpython.org does not seem to contain
answers to these, neither does the documentation or the archives. If I
simply misread/ looked the info I would appreciate a pointer to it.

1) Is the implementation of wxGrid complete enough for me to expect that
SetTable with my own wxPyGridBaseTable should work?

I tried this and got a runtime complaint about my class not being a
wxGridTableBase class - I did try extending wxPyGridTableBase and
wxGridTableBase.

2) Has anyone else experienced problems with the events on the wxGrid,
especially EVT_CELL_CHANGE?

Any pointers on these are appreciated.

My platform details:
Gentoo Linux
Python 2.2.2
wxPython 2.4.0.2
wxGTK 2.4.0

Kind regards

···

--
Rijk Stofberg

Upfront Systems
www.upfrontsystems.co.za
Tel: 021-8801717
Fax: 021-8801724

<snip>

1) Is the implementation of wxGrid complete enough for me to expect that
SetTable with my own wxPyGridBaseTable should work?

I tried this and got a runtime complaint about my class not being a
wxGridTableBase class - I did try extending wxPyGridTableBase and
wxGridTableBase.

I'm using wxGrid along with a custom wxPyGridTableBase without any
problems. My grid table subclasses from wxPyGridTableBase. Can you
post either the exact error message or a small sample that causes the
error? I'm using the exact setup you are without problems so I'm sure
we can figure out the problem.

Nathan

···

On Tue, 2003-03-04 at 02:54, Rijk Stofberg wrote:

--
Nathan R. Yergler
http://yergler.net/~nathan

Hmm, nabbed the problem...

My class was not calling the __init__ method of it's parent... No
wonder the rest of the world was unhappy with it. :slight_smile:

Thanx
Rijk