def submit_text(self, *args):
		self.t = sl.tp_dh.find_duplicate_patterns()
		if isinstance(self.t, tuple): 
			self.duplicate_patterns_window_create(self, self.t)

		self.copy_from_field['state'] = 'normal'
		self.copy_from_field.delete(1.0, Tkinter.END)
		text = self.paste_to_field.get(1.0, Tkinter.END)	
		text += u''
		self.line_mode_bool = self.line_mode_var.get()
		self.selected_mode = self.options_var.get()
		result = sl.make_selection(text, multiline_bool=self.line_mode_bool,
			selection=self.selected_mode)
		self.copy_from_field.insert(Tkinter.END, result)
		self.copy_from_field['state'] = 'disabled'
Beispiel #2
0
def process_clipboard(text):	
	# Process the clipboard text 							
	result = sl.make_selection(text)								
	
	return result