On 8/26/10 8:42 AM, Ed Leafe wrote:
> On Aug 26, 2010, at 11:27 AM, Bronwyn Woods wrote:
>> I could also try using a dynamic DataSet, but I haven't been able to get the
>> assigned dynamic function to be called when I want the grid to update.  Is
>> it likely that getting this method to work would fix the problem I'm having?
>
>
>       The Dynamic* props are called when update() is called on the object.
>
>       Are you setting the DynamicDataSet property to the method, and not the 
> "called" method? E.g.:
>
> Right: grid.DynamicDataSet = myDataMethod
>
> Wrong: grid.DynamicDataSet = myDataMethod()

Seems pretty heavy-handed to keep assigning a new dataset on each update, and I 
don't 
see how this would be any different than swapping in a new dataset manually 
when 
appropriate.

You can't use a bizobj as a DataSource? Or a read/write DataSet (hint: make it 
a list 
instead of a tuple)? With a r/w dataset you should be able to add and remove 
the 
"records", and then call grd.update(), and it should work.

I've gotten bus errors on Mac in other cases where no errors happen on the 
other 
platforms (sometimes it is bus error on Mac, seg fault on Win, and nothing on 
Linux 
though).

Are you using the latest wxPython (2.8.11.0)? What version of Mac OS X? Have 
you/can 
you try on other platforms so we know if this is an os-specific problem or not?

Paul
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/[email protected]

Reply via email to