本文整理汇总了Python中Components.config.ConfigText.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python ConfigText.__init__方法的具体用法?Python ConfigText.__init__怎么用?Python ConfigText.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Components.config.ConfigText
的用法示例。
在下文中一共展示了ConfigText.__init__方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from Components.config import ConfigText [as 别名]
# 或者: from Components.config.ConfigText import __init__ [as 别名]
def __init__(self, default = '', fixed_size = True, visible_width = False):
ConfigText.__init__(self, default=default, fixed_size=fixed_size, visible_width=visible_width)
mapping = self.mapping
if mapping:
if '<' not in mapping[1]:
mapping[1] += '<'
if '>' not in mapping[1]:
mapping[1] += '>'
示例2: __init__
# 需要导入模块: from Components.config import ConfigText [as 别名]
# 或者: from Components.config.ConfigText import __init__ [as 别名]
def __init__(self, default, fixed_size, visible_width, updateSuggestions):
ConfigText.__init__(self, default, fixed_size, visible_width)
self.updateSuggestions = updateSuggestions
self.suggestions = GoogleSuggestions()
if config.plugins.YouTube.searchRegion.value:
self.suggestions.hl = config.plugins.YouTube.searchRegion.value.lower()
self.suggestionsThread = None
self.suggestionsThreadRunning = False
示例3: __init__
# 需要导入模块: from Components.config import ConfigText [as 别名]
# 或者: from Components.config.ConfigText import __init__ [as 别名]
def __init__(self, default = "", fixed_size = True, visible_width = False):
ConfigText.__init__(self, default = default, fixed_size = fixed_size, visible_width = visible_width)
# Workaround some characters currently not "typeable" using NumericalTextInput
mapping = self.mapping
if mapping:
if "&" not in mapping[0]:
mapping[0] += "&"
if ";" not in mapping[0]:
mapping[0] += ";"
if "%" not in mapping[0]:
mapping[0] += "%"
示例4: __init__
# 需要导入模块: from Components.config import ConfigText [as 别名]
# 或者: from Components.config.ConfigText import __init__ [as 别名]
def __init__(self, default = "0000", size= 4):
try:
dummy = int(default,16)
except:
default="0"*size
ConfigText.__init__(self, default, fixed_size = False)
self.mapping = []
self.mapping.append (u"0") # 0
self.mapping.append (u"1") # 1
self.mapping.append (u"2ABC") # 2
self.mapping.append (u"3DEF") # 3
self.mapping.append (u"4") # 4
self.mapping.append (u"5") # 5
self.mapping.append (u"6") # 6
self.mapping.append (u"7") # 7
self.mapping.append (u"8") # 8
self.mapping.append (u"9") # 9
self.size = size
示例5: __init__
# 需要导入模块: from Components.config import ConfigText [as 别名]
# 或者: from Components.config.ConfigText import __init__ [as 别名]
def __init__(self, text, visible_width=60):
ConfigText.__init__(self, default = text, fixed_size = True, visible_width = visible_width)
示例6: __init__
# 需要导入模块: from Components.config import ConfigText [as 别名]
# 或者: from Components.config.ConfigText import __init__ [as 别名]
def __init__(self):
ConfigText.__init__(self, default = "", fixed_size = True, visible_width = False)
示例7: __init__
# 需要导入模块: from Components.config import ConfigText [as 别名]
# 或者: from Components.config.ConfigText import __init__ [as 别名]
def __init__(self, default = "", fixed_size = True, visible_width = False):
ConfigText.__init__(self, default, fixed_size, visible_width)
self.suggestions = GoogleSuggestions()
self.suggestionsThread = None
self.suggestionsThreadRunning = False
self.suggestionsListActivated = False
示例8: __init__
# 需要导入模块: from Components.config import ConfigText [as 别名]
# 或者: from Components.config.ConfigText import __init__ [as 别名]
def __init__(self, default = "", fixed_size = True, visible_width = False, threaded = False):
ConfigText.__init__(self, default, fixed_size, visible_width)
self.suggestions = GoogleSuggestions(self.propagateSuggestions, ds = "yt", hl = "en")
self.suggestionsThread = None
self.threaded = threaded
self.suggestionsListActivated = False