def __init__(self, parent, filename): HelpBA.__init__(self, parent) self.setGeometry(100, 50, 800, 600) self.textBrowser = textbrowser(self) absPath = self.getHelpFile(filename) self.setCentralWidget(self.textBrowser) self.textBrowser.setSource(absPath) self.fwdAvailable = 0 self.show()
def __init__(self, parent, filename, external_browser=None): HelpBA.__init__(self, None, None) #Qt.WType_TopLevel | Qt.WDestructiveClose) self.external_browser = external_browser self.setGeometry(100, 50, 800, 600) self.setCaption("Help") self.setIcon(QPixmap(xpm.kodosIcon)) #self.setIcon(getPixmap("kodos_icon.png", "PNG")) self.textBrowser = textbrowser(self) absPath = self.getHelpFile(filename) self.setCentralWidget(self.textBrowser) self.textBrowser.setSource(absPath) self.fwdAvailable = 0 self.show()