本文整理汇总了Python中setroubleshoot.Plugin.Plugin类的典型用法代码示例。如果您正苦于以下问题:Python Plugin类的具体用法?Python Plugin怎么用?Python Plugin使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了Plugin类的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
def __init__(self):
Plugin.__init__(self, __name__)
self.set_priority(100)
示例2: __init__
def __init__(self):
Plugin.__init__(self, __name__)
self.level="green"
示例3: __init__
def __init__(self):
Plugin.__init__(self, __name__)
self.set_priority(100)
self.level = "green"
self.fixable = True
self.button_text=_("Restore\nContext")
示例4: __init__
def __init__(self):
Plugin.__init__(self, __name__)
示例5: __init__
def __init__(self):
Plugin.__init__(self, __name__)
self.set_priority(8)
self.level = "yellow"
示例6: __init__
def __init__(self):
Plugin.__init__(self, __name__)
self.fixable = True
self.button_text = _("Disable SELinux controls on Chrome plugins")
self.set_priority(50)
示例7: __init__
def __init__(self):
Plugin.__init__(self, __name__)
self.fixable = True
self.button_text = _("Enable booleans.")
示例8: __init__
def __init__(self):
Plugin.__init__(self, __name__)
self.set_priority(1)
self.report_bug = True
示例9: __init__
def __init__(self):
Plugin.__init__(self, __name__)
self.fixable=True
self.button_text=_("Turn off memory protection")
示例10: __init__
def __init__(self):
Plugin.__init__(self,__name__)
self.level="green"
self.set_priority(8)
示例11: __init__
def __init__(self):
Plugin.__init__(self, __name__)
self.level="yellow"
self.fixable=True
self.button_text=_("Restore Context")
示例12: __init__
def __init__(self):
Plugin.__init__(self, __name__)
self.set_priority(10)
self.level="red"