Example #1
0
 def __init__(self, *args, **kwargs):
     self.pasteboard = NSPasteboard.generalPasteboard()
     if self.pasteboard is None:
         raise Exception("cannot load Pasteboard, maybe not running from a GUI session?")
     kwargs["clipboard.local"] = "CLIPBOARD"
     kwargs["clipboards.local"] = ["CLIPBOARD"]
     ClipboardTimeoutHelper.__init__(self, *args, **kwargs)
Example #2
0
 def __init__(self, send_packet_cb, progress_cb=None, **kwargs):
     gobject.GObject.__init__(self)
     self.init_window()
     init_x11_filter()
     self.x11_filter = True
     ClipboardTimeoutHelper.__init__(self, send_packet_cb, progress_cb,
                                     **kwargs)
Example #3
0
 def __init__(self, send_packet_cb, progress_cb=None, **kwargs):
     self.init_window()
     ClipboardTimeoutHelper.__init__(self, send_packet_cb, progress_cb,
                                     **kwargs)