MCPcopy Create free account
hub / github.com/PyQt5/PyQt / closeEvent

Method closeEvent

QSerialPort/SerialDebugAssistant.py:126–129  ·  view source on GitHub ↗
(self, event)

Source from the content-addressed store, hash-verified

124 self.comboBoxPort.addItem(info.portName())
125
126 def closeEvent(self, event):
127 if self._serial.isOpen():
128 self._serial.close()
129 super(Window, self).closeEvent(event)
130
131
132if __name__ == '__main__':

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected