Well, your complaint was that the values were strings after having
been edited and by implementing those methods you give the grid a way to
give the values to your table as floating point values instead of as
strings, which is what I assumed you wanted. The other option would
be to convert the strings that the editors are sending to your table
into floating point values yourself.
Please read below what I answered to Mike. I am going to experiment
with the two options. That will probably make me a lot wiser.
In general I can say that the three tools I have to use, Python,
postgresql and wxPython, the last one is the most difficult one.
But your book played an essential role in producing anything. Thanks.
Well, I wrote about the Grid in general a while ago. I'm surprised
Google isn't finding that:
wxPython: Grid Tips and Tricks - Mouse Vs Python
wxPython: An Introduction to Grids - Mouse Vs PythonAnd there's a TON of information on the wxPython wiki. Here are two
examples:
Yes that is true. I should have been more specific. I suppose I am
looking for the middle ground. Your blogs are rather elementary, and
the wiki things summarize a lot (with wxwidgets steno) without giving
the kind of help I need. I am a hobbyist, not a programming
professional.
What i do need is the kind of help Robin's book is full of:
what is the purpose of a method, in what context do you use it, plus
(often) examples of its usage. But he couldn't tell everything.
The paragraph 'Creating a custom Editor' (page 451) is cryptic and too
short for this difficult subject. I have tried to read it several
times, and only now, a few minutes ago, it started to make some sense.
I realised that 'custom processing on the value entered' was not only
about the value shown on the screen, but about the underlying data as
well.
Probably I didn't look for it well enough, but I could not find any
explanation or other background info of the method families like
Can(G|S)etValueAs and HideCellEditControl. Not in Robin's book, and not
with Google. So I still wonder where and when to use them.
e
···
On Wed, 11 Jul 2012 07:54:42 -0700 (PDT) Robin Dunn <robin@alldunn.com> wrote:
Mike Driscoll <kyosohma@gmail.com> wrote:
--
Egbert Bouwman