Exemple #1
0
	def on_connected_as_slave(self):
		log.info("Control connector connected")
		beep_sequence.beep_sequence_async((720, 100), 50, (720, 100), 50, (720, 100))
		# Translators: Presented in direct (client to server) remote connection when the controlled computer is ready.
		speech.speakMessage(_("Connected to control server"))
		self.push_clipboard_item.Enable(True)
		self.copy_link_item.Enable(True)
		configuration.write_connection_to_config(self.slave_transport.address)
Exemple #2
0
 def on_connected_as_slave(self):
     log.info("Control connector connected")
     beep_sequence.beep_sequence_async((720, 100), 50, (720, 100), 50,
                                       (720, 100))
     # Translators: Presented in direct (client to server) remote connection when the controlled computer is ready.
     speech.speakMessage(_("Connected to control server"))
     self.push_clipboard_item.Enable(True)
     self.copy_link_item.Enable(True)
     configuration.write_connection_to_config(self.slave_transport.address)
Exemple #3
0
 def on_connected_as_master(self):
     configuration.write_connection_to_config(self.master_transport.address)
     self.disconnect_item.Enable(True)
     self.connect_item.Enable(False)
     self.mute_item.Enable(True)
     self.push_clipboard_item.Enable(True)
     self.copy_link_item.Enable(True)
     self.send_ctrl_alt_del_item.Enable(True)
     self.hook_thread = threading.Thread(target=self.hook)
     self.hook_thread.daemon = True
     self.hook_thread.start()
     self.bindGesture(REMOTE_KEY, "sendKeys")
     # Translators: Presented when connected to the remote computer.
     ui.message(_("Connected!"))
     beep_sequence.beep_sequence_async((440, 60), (660, 60))
Exemple #4
0
	def on_connected_as_master(self):
		configuration.write_connection_to_config(self.master_transport.address)
		self.disconnect_item.Enable(True)
		self.connect_item.Enable(False)
		self.mute_item.Enable(True)
		self.push_clipboard_item.Enable(True)
		self.copy_link_item.Enable(True)
		self.send_ctrl_alt_del_item.Enable(True)
		self.hook_thread = threading.Thread(target=self.hook)
		self.hook_thread.daemon = True
		self.hook_thread.start()
		self.bindGesture(REMOTE_KEY, "sendKeys")
		# Translators: Presented when connected to the remote computer.
		ui.message(_("Connected!"))
		beep_sequence.beep_sequence_async((440, 60), (660, 60))