当前位置: 首页>>代码示例>>Python>>正文


Python UIXpraClient.make_hello方法代码示例

本文整理汇总了Python中xpra.client.ui_client_base.UIXpraClient.make_hello方法的典型用法代码示例。如果您正苦于以下问题:Python UIXpraClient.make_hello方法的具体用法?Python UIXpraClient.make_hello怎么用?Python UIXpraClient.make_hello使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在xpra.client.ui_client_base.UIXpraClient的用法示例。


在下文中一共展示了UIXpraClient.make_hello方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: make_hello

# 需要导入模块: from xpra.client.ui_client_base import UIXpraClient [as 别名]
# 或者: from xpra.client.ui_client_base.UIXpraClient import make_hello [as 别名]
 def make_hello(self):
     capabilities = UIXpraClient.make_hello(self)
     capabilities["named_cursors"] = len(cursor_types)>0
     #we need the bindings to support initiate-moveresize (posix only for now):
     from xpra.client.gtk_base.gtk_client_window_base import HAS_X11_BINDINGS
     capabilities["window.initiate-moveresize"] = HAS_X11_BINDINGS
     capabilities.update(get_gtk_version_info())
     return capabilities
开发者ID:svn2github,项目名称:Xpra,代码行数:10,代码来源:gtk_client_base.py

示例2: make_hello

# 需要导入模块: from xpra.client.ui_client_base import UIXpraClient [as 别名]
# 或者: from xpra.client.ui_client_base.UIXpraClient import make_hello [as 别名]
 def make_hello(self):
     capabilities = UIXpraClient.make_hello(self)
     capabilities["named_cursors"] = len(cursor_types)>0
     capabilities.update(get_gtk_version_info())
     #tell the server which icons GTK can use
     #so it knows when it should supply one as fallback
     it = icon_theme_get_default()
     #this would add our bundled icon directory
     #to the search path, but I don't think we have
     #any extra icons that matter in there:
     #from xpra.platform.paths import get_icon_dir
     #d = get_icon_dir()
     #if d not in it.get_search_path():
     #    it.append_search_path(d)
     #    it.rescan_if_needed()
     log("default icon theme: %s", it)
     log("icon search path: %s", it.get_search_path())
     log("contexts: %s", it.list_contexts())
     icons = []
     for context in it.list_contexts():
         icons += it.list_icons(context)
     log("icons: %s", icons)
     capabilities["theme.default.icons"] = list(set(icons))
     if METADATA_SUPPORTED:
         ms = [x.strip() for x in METADATA_SUPPORTED.split(",")]
     else:
         #this is currently unused, and slightly redundant because of metadata.supported below:
         capabilities["window.states"] = ["fullscreen", "maximized", "sticky", "above", "below", "shaded", "iconified", "skip-taskbar", "skip-pager"]
         ms = list(DEFAULT_METADATA_SUPPORTED)
         #added in 0.15:
         ms += ["command", "workspace", "above", "below", "sticky"]
     if os.name=="posix":
         #this is only really supported on X11, but posix is easier to check for..
         #"strut" and maybe even "fullscreen-monitors" could also be supported on other platforms I guess
         ms += ["shaded", "bypass-compositor", "strut", "fullscreen-monitors"]
     log("metadata.supported: %s", ms)
     capabilities["metadata.supported"] = ms
     #we need the bindings to support initiate-moveresize (posix only for now):
     from xpra.client.gtk_base.gtk_client_window_base import HAS_X11_BINDINGS
     capabilities["window.initiate-moveresize"] = HAS_X11_BINDINGS
     #window icon bits
     capabilities["encoding.icons.greedy"] = True            #we don't set a default window icon any more
     capabilities["encoding.icons.size"] = 64, 64            #size we want
     capabilities["encoding.icons.max_size"] = 128, 128      #limit
     from xpra.client.window_backing_base import DELTA_BUCKETS
     capabilities["encoding.delta_buckets"] = DELTA_BUCKETS
     return capabilities
开发者ID:svn2github,项目名称:Xpra,代码行数:49,代码来源:gtk_client_base.py

示例3: make_hello

# 需要导入模块: from xpra.client.ui_client_base import UIXpraClient [as 别名]
# 或者: from xpra.client.ui_client_base.UIXpraClient import make_hello [as 别名]
 def make_hello(self):
     capabilities = UIXpraClient.make_hello(self)
     capabilities["named_cursors"] = len(cursor_names)>0
     add_gtk_version_info(capabilities, gtk, "", True)
     return capabilities
开发者ID:Brainiarc7,项目名称:xpra,代码行数:7,代码来源:gtk_client_base.py

示例4: make_hello

# 需要导入模块: from xpra.client.ui_client_base import UIXpraClient [as 别名]
# 或者: from xpra.client.ui_client_base.UIXpraClient import make_hello [as 别名]
 def make_hello(self):
     capabilities = UIXpraClient.make_hello(self)
     capabilities["named_cursors"] = len(cursor_names)>0
     capabilities.update(get_gtk_version_info())
     return capabilities
开发者ID:svn2github,项目名称:Xpra,代码行数:7,代码来源:gtk_client_base.py

示例5: make_hello

# 需要导入模块: from xpra.client.ui_client_base import UIXpraClient [as 别名]
# 或者: from xpra.client.ui_client_base.UIXpraClient import make_hello [as 别名]
 def make_hello(self):
     capabilities = UIXpraClient.make_hello(self)
     capabilities["named_cursors"] = len(cursor_types)>0
     capabilities.update(flatten_dict(get_gtk_version_info()))
     #tell the server which icons GTK can use
     #so it knows when it should supply one as fallback
     it = icon_theme_get_default()
     #this would add our bundled icon directory
     #to the search path, but I don't think we have
     #any extra icons that matter in there:
     #from xpra.platform.paths import get_icon_dir
     #d = get_icon_dir()
     #if d not in it.get_search_path():
     #    it.append_search_path(d)
     #    it.rescan_if_needed()
     log("default icon theme: %s", it)
     log("icon search path: %s", it.get_search_path())
     log("contexts: %s", it.list_contexts())
     icons = []
     for context in it.list_contexts():
         icons += it.list_icons(context)
     log("icons: %s", icons)
     capabilities["theme.default.icons"] = list(set(icons))
     if METADATA_SUPPORTED:
         ms = [x.strip() for x in METADATA_SUPPORTED.split(",")]
     else:
         #this is currently unused, and slightly redundant because of metadata.supported below:
         capabilities["window.states"] = ["fullscreen", "maximized", "sticky", "above", "below", "shaded", "iconified", "skip-taskbar", "skip-pager"]
         ms = list(DEFAULT_METADATA_SUPPORTED)
         #added in 0.15:
         ms += ["command", "workspace", "above", "below", "sticky",
                "set-initial-position"]  #0.17
     if os.name=="posix":
         #this is only really supported on X11, but posix is easier to check for..
         #"strut" and maybe even "fullscreen-monitors" could also be supported on other platforms I guess
         ms += ["shaded", "bypass-compositor", "strut", "fullscreen-monitors"]
     if HAS_X11_BINDINGS:
         ms += ["shape"]
     if self._set_window_menu:
         ms += ["menu"]
     #figure out if we can handle the "global menu" stuff:
     if os.name=="posix" and not sys.platform.startswith("darwin"):
         try:
             from xpra.dbus.helper import DBusHelper
             assert DBusHelper
         except:
             pass
     log("metadata.supported: %s", ms)
     capabilities["metadata.supported"] = ms
     #we need the bindings to support initiate-moveresize (posix only for now):
     updict(capabilities, "window", {
            "initiate-moveresize"    : HAS_X11_BINDINGS,
            "configure.pointer"      : True,
            "frame_sizes"            : self.get_window_frame_sizes()
            })
     from xpra.client.window_backing_base import DELTA_BUCKETS
     updict(capabilities, "encoding", {
                 "icons.greedy"      : True,         #we don't set a default window icon any more
                 "icons.size"        : (64, 64),     #size we want
                 "icons.max_size"    : (128, 128),   #limit
                 "delta_buckets"     : DELTA_BUCKETS,
                 })
     return capabilities
开发者ID:ljmljz,项目名称:xpra,代码行数:65,代码来源:gtk_client_base.py

示例6: make_hello

# 需要导入模块: from xpra.client.ui_client_base import UIXpraClient [as 别名]
# 或者: from xpra.client.ui_client_base.UIXpraClient import make_hello [as 别名]
 def make_hello(self):
     capabilities = UIXpraClient.make_hello(self)
     capabilities["named_cursors"] = False
     #add_qt_version_info(capabilities, QtGui)
     return capabilities
开发者ID:svn2github,项目名称:Xpra,代码行数:7,代码来源:client.py

示例7: make_hello

# 需要导入模块: from xpra.client.ui_client_base import UIXpraClient [as 别名]
# 或者: from xpra.client.ui_client_base.UIXpraClient import make_hello [as 别名]
 def make_hello(self, challenge_response=None):
     capabilities = UIXpraClient.make_hello(self, challenge_response)
     capabilities["named_cursors"] = len(cursor_names)>0
     add_gtk_version_info(capabilities, gtk, "", True)
     return capabilities
开发者ID:svn2github,项目名称:Xpra,代码行数:7,代码来源:gtk_client_base.py

示例8: make_hello

# 需要导入模块: from xpra.client.ui_client_base import UIXpraClient [as 别名]
# 或者: from xpra.client.ui_client_base.UIXpraClient import make_hello [as 别名]
 def make_hello(self, challenge_response=None):
     capabilities = UIXpraClient.make_hello(self, challenge_response)
     capabilities["named_cursors"] = False
     #add_qt_version_info(capabilities, QtGui)
     return capabilities
开发者ID:svn2github,项目名称:Xpra,代码行数:7,代码来源:client.py


注:本文中的xpra.client.ui_client_base.UIXpraClient.make_hello方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。