bear with me, I've been using wxPython for all of one day now.
Short version is, given a reference to a grid.PyGridCellEditor and a string, how can I implement a paste function?
This is in the body of a large block of existing code that tries to handle pasting entire rows in a Grid widget, and this block is the special case where the cell edit control is visible and there's just a plain text string on the clipboard. I can replace the whole cell with what is on the clipboard but I want bona fide paste -- either insert the text at the insertion cursor or replace the selected text.
The block of code I have looks something like this:
def paste(self):
clipboard = <get contents from the clipboard>
....
if self.IsCellEditControlShown:
# just do a normal paste here
celleditor = self.GetCellEditor(row,col)
<what goes here?>