예제 #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)