Exemplo n.º 1
0
 def __init__(self, client, opts):
     ClientExtrasBase.__init__(self, client, opts)
     self.setup_menu()
     self.setup_tray(opts.tray_icon)
     self.setup_clipboard_helper(ClipboardProtocolHelper)
     self._last_key_events = maxdeque(maxlen=5)
     self._dropped_num_lock_press = False
Exemplo n.º 2
0
 def __init__(self, client, opts):
     ClientExtrasBase.__init__(self, client, opts)
     self.setup_menu()
     self.setup_tray(opts.tray_icon)
     self.setup_clipboard_helper(ClipboardProtocolHelper)
     self._last_key_events = deque(maxlen=5)
     self._dropped_num_lock_press = False
Exemplo n.º 3
0
 def __init__(self, client, opts, conn):
     ClientExtrasBase.__init__(self, client, opts, conn)
     try:
         from xpra.platform.gdk_clipboard import TranslatedClipboardProtocolHelper
         self.setup_clipboard_helper(TranslatedClipboardProtocolHelper)
     except ImportError, e:
         log.error("GDK Translated Clipboard failed to load: %s - using default fallback", e)
         self.setup_clipboard_helper(DefaultClipboardProtocolHelper)
Exemplo n.º 4
0
 def __init__(self, client, opts, conn):
     ClientExtrasBase.__init__(self, client, opts, conn)
     try:
         from xpra.platform.gdk_clipboard import TranslatedClipboardProtocolHelper
         self.setup_clipboard_helper(TranslatedClipboardProtocolHelper)
     except ImportError, e:
         log.error(
             "GDK Translated Clipboard failed to load: %s - using default fallback",
             e)
         self.setup_clipboard_helper(DefaultClipboardProtocolHelper)
Exemplo n.º 5
0
 def __init__(self, client, opts, conn):
     self.menu_bar = None
     self.macapp = None
     self.last_attention_request_id = -1
     ClientExtrasBase.__init__(self, client, opts, conn)
     self.locate_icon_filename(opts.tray_icon)
     self.setup_macdock()
     try:
         from xpra.darwin.osx_clipboard import OSXClipboardProtocolHelper
         self.setup_clipboard_helper(OSXClipboardProtocolHelper)
     except ImportError, e:
         log.error("OSX clipboard failed to load: %s - using default fallback", e)
         self.setup_clipboard_helper(DefaultClipboardProtocolHelper)
Exemplo n.º 6
0
 def __init__(self, client, opts, conn):
     self.menu_bar = None
     self.macapp = None
     self.last_attention_request_id = -1
     ClientExtrasBase.__init__(self, client, opts, conn)
     self.locate_icon_filename(opts.tray_icon)
     self.setup_macdock()
     try:
         from xpra.darwin.osx_clipboard import OSXClipboardProtocolHelper
         self.setup_clipboard_helper(OSXClipboardProtocolHelper)
     except ImportError, e:
         log.error(
             "OSX clipboard failed to load: %s - using default fallback", e)
         self.setup_clipboard_helper(DefaultClipboardProtocolHelper)
Exemplo n.º 7
0
 def __init__(self, client, opts, conn):
     ClientExtrasBase.__init__(self, client, opts, conn)
     self.locate_icon_filename(opts.tray_icon)
     self.setup_growl(opts.notifications)
     self.setup_macdock()
Exemplo n.º 8
0
 def __init__(self, client, opts):
     ClientExtrasBase.__init__(self, client, opts)
     self.locate_icon_filename(opts.tray_icon)
     self.setup_growl()
     self.setup_macdock()
     self.clipboard_helper = None
Exemplo n.º 9
0
 def __init__(self, client, opts, conn):
     self.menu_bar = None
     self.macapp = None
     ClientExtrasBase.__init__(self, client, opts, conn)
     self.locate_icon_filename(opts.tray_icon)
     self.setup_macdock()
Exemplo n.º 10
0
 def __init__(self, client, opts):
     ClientExtrasBase.__init__(self, client, opts)
     self.locate_icon_filename(opts.tray_icon)
     self.setup_growl(opts.notifications)
     self.setup_macdock()