Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Readonly pandas dataframe grid #62

Open
gbrault opened this issue Sep 21, 2021 · 0 comments
Open

Readonly pandas dataframe grid #62

gbrault opened this issue Sep 21, 2021 · 0 comments
Labels
feature Feature requests or improvements ready Issues ready to be worked on

Comments

@gbrault
Copy link

gbrault commented Sep 21, 2021

Thanks for this very good component
could be helpful to add an example of read-only grid.

Here is a skeleton:

query = ""  # ...
engine = None #...
description = pd.read_sql_query(query, engine) # add some more context
class DataFrameModel_noedit(rt.datamodel.pandas.DataFrameDataModel):
    def editable(self, x, y):
        return False
    
w1 = rt.RegularTableWidget()
w1.datamodel = DataFrameModel_noedit(description)
w1
@timkpaine timkpaine added feature Feature requests or improvements ready Issues ready to be worked on labels Sep 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Feature requests or improvements ready Issues ready to be worked on
Projects
None yet
Development

No branches or pull requests

2 participants