MCPcopy Create free account
hub / github.com/Simsys/qhexedit2 / loadFile

Method loadFile

python/example/example-pyqt5.py:129–136  ·  view source on GitHub ↗
(self, fileName)

Source from the content-addressed store, hash-verified

127 self.readSettings()
128
129 def loadFile(self, fileName):
130 QtWidgets.QApplication.setOverrideCursor(QtCore.Qt.WaitCursor)
131 with open(fileName, 'rb') as f:
132 self.hexEdit.setData(f.read())
133 QtWidgets.QApplication.restoreOverrideCursor()
134
135 self.setCurrentFile(fileName)
136 self.statusBar().showMessage("File loaded", 2000)
137
138 def open(self):
139 fileName, _filter = QtWidgets.QFileDialog.getOpenFileName(self)

Callers 1

openMethod · 0.95

Calls 2

setCurrentFileMethod · 0.95
setDataMethod · 0.80

Tested by

no test coverage detected