(self, filename)
| 549 | |
| 550 | @lru_cache(100) |
| 551 | def getExampleContent(self, filename): |
| 552 | if filename is None: |
| 553 | self.ui.codeView.clear() |
| 554 | return |
| 555 | if os.path.isdir(filename): |
| 556 | filename = os.path.join(filename, '__main__.py') |
| 557 | with open(filename, "r") as currentFile: |
| 558 | text = currentFile.read() |
| 559 | return text |
| 560 | |
| 561 | def codeEdited(self): |
| 562 | self.codeBtn.show() |
no test coverage detected