Example #1
0
	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
Example #2
0
 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] += '>'
	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] += "%"
Example #4
0
 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:
         mapping[1] = '1*-/,'
         mapping[2] = '2'
         mapping[3] = '3'
         mapping[4] = '4'
         mapping[5] = '5'
         mapping[6] = '6'
         mapping[7] = '7'
         mapping[8] = '8'
         mapping[9] = '9'
         mapping[0] = '0'
	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
Example #6
0
	def __init__(self, text, visible_width=60):
		ConfigText.__init__(self, default = text, fixed_size = True, visible_width = visible_width)
Example #7
0
	def __init__(self):
		ConfigText.__init__(self, default = "", fixed_size = True, visible_width = False)
	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
	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
Example #10
0
 def __init__(self, text, visible_width=60):
     ConfigText.__init__(self,
                         default=text,
                         fixed_size=True,
                         visible_width=visible_width)
Example #11
0
 def __init__(self):
     ConfigText.__init__(self,
                         default="",
                         fixed_size=True,
                         visible_width=False)
Example #12
0
 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