MCPcopy Create free account
hub / github.com/pyqtgraph/pyqtgraph / showFile

Method showFile

pyqtgraph/examples/ExampleApp.py:543–548  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

541 subprocess.Popen([sys.executable, fn], cwd=path, env=env)
542
543 def showFile(self):
544 fn = self.currentFile()
545 text = self.getExampleContent(fn)
546 self.ui.codeView.setPlainText(text)
547 self.ui.loadedFileLabel.setText(fn)
548 self.codeBtn.hide()
549
550 @lru_cache(100)
551 def getExampleContent(self, filename):

Callers

nothing calls this directly

Calls 5

currentFileMethod · 0.95
getExampleContentMethod · 0.95
setPlainTextMethod · 0.80
setTextMethod · 0.45
hideMethod · 0.45

Tested by

no test coverage detected