def __init__(self): import gtk.gdk ShadowServerBase.__init__(self, gtk.gdk.get_default_root_window()) GTKServerBase.__init__(self) self.keycodes = {} from xpra.net.bytestreams import set_continue_wait #on win32, we want to wait just a little while, #to prevent servers spinning wildly on non-blocking sockets: set_continue_wait(5)
def __init__(self): #sanity check: image = CG.CGWindowListCreateImage(CG.CGRectInfinite, CG.kCGWindowListOptionOnScreenOnly, CG.kCGNullWindowID, CG.kCGWindowImageDefault) if image is None: raise Exception("cannot grab test screenshot - maybe you need to run this command whilst logged in via the UI") ShadowServerBase.__init__(self, gtk.gdk.get_default_root_window()) GTKServerBase.__init__(self)
def __init__(self): import gtk.gdk ShadowServerBase.__init__(self, gtk.gdk.get_default_root_window()) GTKServerBase.__init__(self) self.keycodes = {}
def __init__(self): ShadowServerBase.__init__(self, gtk.gdk.get_default_root_window()) X11ServerBase.__init__(self)
def make_hello(self, source): capabilities = X11ServerBase.make_hello(self, source) capabilities.update(ShadowServerBase.make_hello(self, source)) capabilities["server_type"] = "Python/gtk2/x11-shadow" return capabilities