Skip to content
Discussion options

You must be logged in to vote

With @saulpw commit de57f34 there is now a lightweight implementation of multiselection:

I put this into my config.py and if pressing E I can repeatedly edit cell values:

# To push and wait for the sheet to finish loading synchronously:
def myOpenSheet(filename):
    vs = vd.openSource(filename)
    vd.push(vs) # will call vs.ensureLoaded()
    vd.sync(vs.ensureLoaded()) # wait for loader threads to finish (if needed)

myOpenSheet("../sample_data/sample.tsv")

@Sheet.api
def pickeditCell(self, vcolidx=None, rowidx=None, value=None, **kwargs):
    '''Call vd.editText for the cell at (*rowidx*, *vcolidx*).  Return the new value, properly typed.
       - *vcolidx*: numeric index into ``self…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by weichm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant