Re: PyGridTableBase

Tom B <[email protected]>
Newsgroups gmane.comp.python.wxpython.devel
Message-ID <[email protected]>
Thanks for responding.. 

1) The github example looks to be 5 years old.. it crashes and after 
commenting out the source of core dumps, never displays a grid... probably 
more work is need to get that working

2) I added the following and  the grid is till not updated...  
        msg = gridlib.GridTableMessage(self, 
gridlib.GRIDTABLE_REQUEST_VIEW_GET_VALUES)
        self.GetView().ProcessTableMessage(msg)  
    

 

On Monday, July 31, 2017 at 7:48:43 AM UTC-7, Tom B wrote:
>
> Posted this to the user forum but now think a wxpython developer might 
> have better insight as there were zero replies, but lots of views..
>
> Does anyone know of examples where gridlib.PyGridTableBase is specialized
> to wrap a pandas dataframe object.  The dataframe brings in a lot of 
> functionality, such as sorting.  I've taken several examples and modified 
> to use a wrapped
> dataframe, but the sort never works.  The dataframe does get sorted but 
> the grid display is never updated.
> Attached is an example where the CVSData source works (commented out), and 
> while PandasDataSource
> sorts the dataframe, the display not updated.     
>
> The CVXData version represents the table as a list of lists. Somewhere in 
> the class structure there is an assumption that the table has to be a [[]], 
> and not column data, even though you can override API's for accessing 
> elements of the table?.  Or could it be I'm not overriding the needed 
> functions ?
>
> Any insights are appreciated
>

-- 
You received this message because you are subscribed to the Google Groups "wxPython-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.