def _do_munge_raw_selection_to_wire(self, target, dtype, dformat, data): #override so we can catch weird OSX data: if dformat == 0 and dtype == "NONE": log("got 'NONE' data from clipboard") return None, None return TranslatedClipboardProtocolHelper._do_munge_raw_selection_to_wire( self, target, dtype, dformat, data)
def __init__(self, *args, **kwargs): init_pasteboard() kwargs["clipboard.local"] = "CLIPBOARD" kwargs["clipboards.local"] = ["CLIPBOARD"] TranslatedClipboardProtocolHelper.__init__(self, *args, **kwargs)
def _do_munge_raw_selection_to_wire(self, target, dtype, dformat, data): #override so we can catch weird OSX data: if dformat == 0 and dtype=="NONE": log("got 'NONE' data from clipboard") return None, None return TranslatedClipboardProtocolHelper._do_munge_raw_selection_to_wire(self, target, dtype, dformat, data)