예제 #1
0
	def copy(self):
		doc = self.app.current_doc
		if doc.canvas.mode == modes.TEXT_EDIT_MODE:
			text = doc.canvas.controller.get_selected()
			wal.set_text_to_clipboard(text)
		else:
			self.app.current_doc.api.copy_selected()
예제 #2
0
파일: app_proxy.py 프로젝트: zcy330/sk1-wx
 def copy(self):
     doc = self.app.current_doc
     if doc.canvas.mode == modes.TEXT_EDIT_MODE:
         text = doc.canvas.controller.get_selected()
         wal.set_text_to_clipboard(text)
     else:
         self.app.current_doc.api.copy_selected()