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

Method onAccept

QColumnView/FileManager.py:64–68  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

62 self._btn.clicked.connect(self.onAccept) # type: ignore
63
64 def onAccept(self):
65 path = self._model.filePath(self._view.currentIndex())
66 print("path", path)
67 if path:
68 QMessageBox.information(self, "提示", "路径:%s" % path)
69
70
71if __name__ == "__main__":

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected