Esempio n. 1
0
 def cleanup(self):
     ClipboardProxy.cleanup(self)
     global change_callbacks
     try:
         change_callbacks.remove(self.local_clipboard_changed)
     except:
         pass
Esempio n. 2
0
 def cleanup(self):
     ClipboardProxy.cleanup(self)
     global change_callbacks
     try:
         change_callbacks.remove(self.local_clipboard_changed)
     except:
         pass
Esempio n. 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)
Esempio n. 4
0
 def __init__(self, selection):
     ClipboardProxy.__init__(self, selection)
     global change_callbacks
     change_callbacks.append(self.local_clipboard_changed)
Esempio n. 5
0
 def __init__(self, selection):
     ClipboardProxy.__init__(self, selection)
     global change_callbacks
     change_callbacks.append(self.local_clipboard_changed)
Esempio n. 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)
Esempio n. 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)