def cleanup(self): ClipboardProxy.cleanup(self) global change_callbacks try: change_callbacks.remove(self.local_clipboard_changed) except: pass
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)
def __init__(self, selection): ClipboardProxy.__init__(self, selection) global change_callbacks change_callbacks.append(self.local_clipboard_changed)
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)
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)