本文整理汇总了Python中color.Coloring.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python Coloring.__init__方法的具体用法?Python Coloring.__init__怎么用?Python Coloring.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类color.Coloring
的用法示例。
在下文中一共展示了Coloring.__init__方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from color import Coloring [as 别名]
# 或者: from color.Coloring import __init__ [as 别名]
def __init__(self, config):
Coloring.__init__(self, config, 'status')
self.project = self.printer('header', attr = 'bold')
self.branch = self.printer('header', attr = 'bold')
self.nobranch = self.printer('nobranch', fg = 'red')
self.important = self.printer('important', fg = 'red')
self.added = self.printer('added', fg = 'green')
self.changed = self.printer('changed', fg = 'red')
self.untracked = self.printer('untracked', fg = 'red')
示例2: __init__
# 需要导入模块: from color import Coloring [as 别名]
# 或者: from color.Coloring import __init__ [as 别名]
def __init__(self, config):
Coloring.__init__(self, config, "status")
self.project = self.printer("header", attr="bold")
self.branch = self.printer("header", attr="bold")
self.nobranch = self.printer("nobranch", fg="red")
self.important = self.printer("important", fg="red")
self.added = self.printer("added", fg="green")
self.changed = self.printer("changed", fg="red")
self.untracked = self.printer("untracked", fg="red")
示例3: __init__
# 需要导入模块: from color import Coloring [as 别名]
# 或者: from color.Coloring import __init__ [as 别名]
def __init__(self):
Coloring.__init__(self, gc, 'test color display')
self._on = True
示例4: __init__
# 需要导入模块: from color import Coloring [as 别名]
# 或者: from color.Coloring import __init__ [as 别名]
def __init__(self, config):
Coloring.__init__(self, config, 'branch')
self.current = self.printer('current', fg='green')
self.local = self.printer('local')
self.notinproject = self.printer('notinproject', fg='red')
示例5: __init__
# 需要导入模块: from color import Coloring [as 别名]
# 或者: from color.Coloring import __init__ [as 别名]
def __init__(self, config):
Coloring.__init__(self, config, "status")
示例6: __init__
# 需要导入模块: from color import Coloring [as 别名]
# 或者: from color.Coloring import __init__ [as 别名]
def __init__(self, config):
Coloring.__init__(self, config, "grep")
self.project = self.printer("project", attr="bold")
示例7: __init__
# 需要导入模块: from color import Coloring [as 别名]
# 或者: from color.Coloring import __init__ [as 别名]
def __init__(self, config):
Coloring.__init__(self, config, 'changelog')
self.project = self.printer('project', attr='bold')
示例8: __init__
# 需要导入模块: from color import Coloring [as 别名]
# 或者: from color.Coloring import __init__ [as 别名]
def __init__(self, gc):
Coloring.__init__(self, gc, 'help')
self.heading = self.printer('heading', attr='bold')
self.wrap = AbstractFormatter(DumbWriter())
示例9: __init__
# 需要导入模块: from color import Coloring [as 别名]
# 或者: from color.Coloring import __init__ [as 别名]
def __init__(self, config):
Coloring.__init__(self, config, 'status')
self.project = self.printer('header', attr='bold')
self.text = self.printer('text')
示例10: __init__
# 需要导入模块: from color import Coloring [as 别名]
# 或者: from color.Coloring import __init__ [as 别名]
def __init__(self, gc):
Coloring.__init__(self, gc, 'interactive')
self.prompt = self.printer('prompt', fg='blue', attr='bold')
self.header = self.printer('header', attr='bold')
self.help = self.printer('help', fg='red', attr='bold')
示例11: __init__
# 需要导入模块: from color import Coloring [as 别名]
# 或者: from color.Coloring import __init__ [as 别名]
def __init__(self, config, cmd):
Coloring.__init__(self, config, cmd)
示例12: __init__
# 需要导入模块: from color import Coloring [as 别名]
# 或者: from color.Coloring import __init__ [as 别名]
def __init__(self, config):
Coloring.__init__(self, config, 'status')
self.project = self.printer('header', attr = 'bold')
self.untracked = self.printer('untracked', fg = 'red')
示例13: __init__
# 需要导入模块: from color import Coloring [as 别名]
# 或者: from color.Coloring import __init__ [as 别名]
def __init__(self, gc):
Coloring.__init__(self, gc, "help")
self.heading = self.printer("heading", attr="bold")
self.wrap = AbstractFormatter(DumbWriter())