It's now working and here is the code fragment:
def actionHelpTriggered(self):
with open('helpfile.html', 'r') as datafile:
result = datafile.read()
self.helptext.setHtml(result)
self.helptext.setReadOnly(-1)
self.helptext.resize(800, 500)
self.helptext.show()
def actionHelpTriggered(self):
with open('helpfile.html', 'r') as datafile:
result = datafile.read()
self.helptext = QtGui.QTextEdit()
self.helptext.setHtml(result)
self.helptext.setReadOnly(-1)
self.helptext.resize(800, 500)
self.helptext.show()
To copy to clipboard, switch view to plain text mode
It hasn't got an [OK] button and it would be better if it had to be closed before the main window is, but it is just about adequate.
Bookmarks