示例#1
0
 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)
示例#2
0
 def __init__(self, *args, **kwargs):
     init_pasteboard()
     kwargs["clipboard.local"] = "CLIPBOARD"
     kwargs["clipboards.local"] = ["CLIPBOARD"]
     TranslatedClipboardProtocolHelper.__init__(self, *args, **kwargs)
示例#3
0
 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)
示例#4
0
 def __init__(self, *args, **kwargs):
     init_pasteboard()
     kwargs["clipboard.local"] = "CLIPBOARD"
     kwargs["clipboards.local"] = ["CLIPBOARD"]
     TranslatedClipboardProtocolHelper.__init__(self, *args, **kwargs)