[wxPython-users] Grid Values: Getting and Setting

Rich Shepard rshepard at appl-ecosys.com
Sun Sep 2 08:04:52 PDT 2007


On Sun, 2 Sep 2007, Werner F. Bruhin wrote:

> SetValue and GetValue "work" on one row/column and give you just that one
> value, so you would only want to update the changed row/column and not all
> of them in SetValue.

Werner,

   I saw that in the arguments passed to SetValue(), but do not grok how to
1) identify which value changed (or was newly added) and 2) write the sql
since the variable added/chaned could be different each time.

> I would think that in OnSave() you would want to do dbconnection.commit()

   The commit() is issued after the write is completed.

Thanks,

Rich

-- 
Richard B. Shepard, Ph.D.               |    The Environmental Permitting
Applied Ecosystem Services, Inc.        |         Accelerators(TM)
<http://www.appl-ecosys.com>     Voice: 503-667-4517      Fax: 503-667-8863




More information about the wxpython-users mailing list