def open_browser_info(self, action: QAction): """ This method is used open some links using the browser when the users click the 'extra info' menu. :param action: flag that indicates if the button is enabled or not. """ if action.iconText() == 'GitHub project': webbrowser.open("https://github.com/pArm-TFG") elif action.iconText() == 'Documentation': webbrowser.open('https://github.com/pArm-TFG/Memoria') elif action.iconText() == 'About us': webbrowser.open( 'https://www.linkedin.com/in/jose-alejandro-moya-blanco-78952a126/' ) webbrowser.open('https://www.linkedin.com/in/javinator9889/') webbrowser.open( 'https://www.linkedin.com/in/mihai-octavian-34865419b/')
def set_serial_port(self, port_id: QAction): """ This method is used to set the serial port that is going to be used to communicate the GUI app with the PCB. When the user select a port in the GUI, this function is executed and the port selected is passed to the logic communication code using the handler object. :param port_id: indicates the port that was selected by the user. """ self.port = port_id.iconText() self.handler.port = self.port if not (self.port == 'No ports available'): self.log.info(f'Port {self.port} selected as communication bay') # self.handler.do_handshake() else: self.log.warning('No ports available - Check out the connections')