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


Python Coloring.__init__方法代码示例

本文整理汇总了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')
开发者ID:jiangxin,项目名称:repo,代码行数:12,代码来源:project.py

示例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")
开发者ID:cupcicm,项目名称:git-repo,代码行数:12,代码来源:project.py

示例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
开发者ID:forest123,项目名称:repo,代码行数:5,代码来源:init.py

示例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')
开发者ID:Andproject,项目名称:tools_repo,代码行数:7,代码来源:branches.py

示例5: __init__

# 需要导入模块: from color import Coloring [as 别名]
# 或者: from color.Coloring import __init__ [as 别名]
 def __init__(self, config):
   Coloring.__init__(self, config, "status")
开发者ID:MinHuZ,项目名称:repo,代码行数:4,代码来源:info.py

示例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")
开发者ID:codetutil,项目名称:git-repo,代码行数:5,代码来源:grep.py

示例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')
开发者ID:HarmanInternational,项目名称:Android,代码行数:5,代码来源:changelog.py

示例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())
开发者ID:4455jkjh,项目名称:git-repo,代码行数:7,代码来源:help.py

示例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')
开发者ID:1379266135,项目名称:git-repo,代码行数:6,代码来源:overview.py

示例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')
开发者ID:MinHuZ,项目名称:repo,代码行数:7,代码来源:stage.py

示例11: __init__

# 需要导入模块: from color import Coloring [as 别名]
# 或者: from color.Coloring import __init__ [as 别名]
 def __init__(self, config, cmd):
   Coloring.__init__(self, config, cmd)
开发者ID:kangear,项目名称:git-repo,代码行数:4,代码来源:forall.py

示例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')
开发者ID:JamesChan,项目名称:git-repo,代码行数:6,代码来源:status.py

示例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())
开发者ID:MinHuZ,项目名称:repo,代码行数:7,代码来源:help.py


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