Exemplo n.º 1
0
	def activate_with_global_scope(self,window):
		# Create autocomplete engine in global scope mode
		engine = AutoCompleteEngine(str(self.windows_count), self.config, self.words, self.dictionary_words)
		engine.activate(window)
		self.eng_map[window] = engine
Exemplo n.º 2
0
	def activate_with_local_scope(self,window):
		# Create autocomplete engine in local scope mode
		engine = AutoCompleteEngine(str(self.windows_count), self.config, {}, [])
		engine.activate(window)
		self.eng_map[window] = engine