本文整理匯總了Python中xpra.server.server_base.ServerBase.do_get_info方法的典型用法代碼示例。如果您正苦於以下問題:Python ServerBase.do_get_info方法的具體用法?Python ServerBase.do_get_info怎麽用?Python ServerBase.do_get_info使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類xpra.server.server_base.ServerBase
的用法示例。
在下文中一共展示了ServerBase.do_get_info方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: do_get_info
# 需要導入模塊: from xpra.server.server_base import ServerBase [as 別名]
# 或者: from xpra.server.server_base.ServerBase import do_get_info [as 別名]
def do_get_info(self, proto, *args):
info = ServerBase.do_get_info(self, proto, *args)
updict(info, "server", get_gtk_version_info())
info.update({
"server.type" : "Python/gtk-x11",
"features.randr" : self.randr})
return info
示例2: do_get_info
# 需要導入模塊: from xpra.server.server_base import ServerBase [as 別名]
# 或者: from xpra.server.server_base.ServerBase import do_get_info [as 別名]
def do_get_info(self, proto, *args):
info = ServerBase.do_get_info(self, proto, *args)
ss = self._server_sources.get(proto)
add_gtk_version_info(info, gtk, "server.", (ss is None) or ss.namespace)
info["server.type"] = "Python/gtk-x11"
info["features.randr"] = self.randr
return info
示例3: do_get_info
# 需要導入模塊: from xpra.server.server_base import ServerBase [as 別名]
# 或者: from xpra.server.server_base.ServerBase import do_get_info [as 別名]
def do_get_info(self, proto, *args):
info = ServerBase.do_get_info(self, proto, *args)
ss = self._server_sources.get(proto)
info.update(get_gtk_version_info(prefix="server", new_namespace=(ss is not None) and ss.namespace))
info.update({
"server.type" : "Python/gtk-x11",
"features.randr" : self.randr})
return info
示例4: do_get_info
# 需要導入模塊: from xpra.server.server_base import ServerBase [as 別名]
# 或者: from xpra.server.server_base.ServerBase import do_get_info [as 別名]
def do_get_info(self, proto, *args):
start = time.time()
info = ServerBase.do_get_info(self, proto, *args)
vi = get_gtk_version_info()
vi["type"] = "Python/gtk-x11"
info.setdefault("server", {}).update(vi)
info.setdefault("features", {})["randr"] = self.randr
log("GTKServerBase.do_get_info took %ims", (time.time()-start)*1000)
return info