本文整理汇总了Python中types.ModuleType.theme_loader方法的典型用法代码示例。如果您正苦于以下问题:Python ModuleType.theme_loader方法的具体用法?Python ModuleType.theme_loader怎么用?Python ModuleType.theme_loader使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类types.ModuleType
的用法示例。
在下文中一共展示了ModuleType.theme_loader方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: join
# 需要导入模块: from types import ModuleType [as 别名]
# 或者: from types.ModuleType import theme_loader [as 别名]
main_path = join(abspath(dirname(__file__)), '..')
#: local objects
_local = Local()
_local_manager = LocalManager([_local])
#: fake module for context internals
ctx = ModuleType('ctx')
ctx.__doc__ = 'module that holds all context locals'
ctx.context = LocalProxy(_local, 'context')
ctx.settings = LocalProxy(_local, 'settings')
ctx.clipboard = LocalProxy(_local, 'clipboard')
ctx.logger = LocalProxy(_local, 'logger')
ctx.theme_environment = LocalProxy(_local, 'theme_environment')
ctx.theme_loader = LocalProxy(_local, 'theme_loader')
def get_copyright():
"""Return the copyright string for the about dialog."""
import nms
return 'Copyright %s' % re.compile(r'^\s+:%s:\s+(.*?)\.$(?m)' % 'copyright') \
.search(nms.__doc__).group(1).strip()
VERSION = (0, 1)
AUTHORS = ['Christopher Grebs <[email protected]>']
ARTISTS = ['Christian Neumeister <http://crash-grafix.de>']
LICENSE = '''
Copyright (c) 2008 by Christopher Grebs.
All rights reserved.