Exemple #1
0
 def cleanup(self):
     ClipboardProxy.cleanup(self)
     global change_callbacks
     try:
         change_callbacks.remove(self.local_clipboard_changed)
     except:
         pass
Exemple #2
0
 def cleanup(self):
     ClipboardProxy.cleanup(self)
     global change_callbacks
     try:
         change_callbacks.remove(self.local_clipboard_changed)
     except:
         pass
Exemple #3
0
 def got_token(self,
               targets,
               target_data,
               claim=True,
               synchronous_client=False):
     ClipboardProxy.got_token(self, targets, target_data, claim,
                              synchronous_client)
     #prevent any change from firing another clipboard update:
     if update_clipboard_change_count:
         c = update_clipboard_change_count()
         log("change count now at %s", c)
Exemple #4
0
 def __init__(self, selection):
     ClipboardProxy.__init__(self, selection)
     global change_callbacks
     change_callbacks.append(self.local_clipboard_changed)
Exemple #5
0
 def __init__(self, selection):
     ClipboardProxy.__init__(self, selection)
     global change_callbacks
     change_callbacks.append(self.local_clipboard_changed)
Exemple #6
0
 def got_token(self, targets, target_data, claim):
     ClipboardProxy.got_token(self, targets, target_data, claim)
     #prevent any change from firing another clipboard update:
     if update_clipboard_change_count:
         c = update_clipboard_change_count()
         log("change count now at %s", c)
Exemple #7
0
 def got_token(self, targets, target_data, claim):
     ClipboardProxy.got_token(self, targets, target_data, claim)
     # prevent any change from firing another clipboard update:
     if update_clipboard_change_count:
         c = update_clipboard_change_count()
         log("change count now at %s", c)