class ArduinoNanoIOHelpDialog(QtGui.QDialog): def __init__(self, parent=None): QDialog.__init__(self)# Constructs a dialog with parent parent. self being ImageDailog # Set up the UI from Designer: self.ui = Ui_IODialog() self.ui.setupUi(self) with open ("ArdNanoIO.html", 'r') as myfile: helpHtml=myfile.read() self.ui.textBrowser.setHtml(helpHtml)
def __init__(self, parent=None): QDialog.__init__( self ) # Constructs a dialog with parent parent. self being ImageDailog # Set up the UI from Designer: self.ui = Ui_IODialog() self.ui.setupUi(self) with open("parallels.html", 'r') as myfile: helpHtml = myfile.read() self.ui.textBrowser.setHtml(helpHtml)
class AboutHelpDialog(QtGui.QDialog): def __init__(self, parent=None): QDialog.__init__(self)# Constructs a dialog with parent parent. self being ImageDailog # Set up the UI from Designer: self.ui = Ui_IODialog() self.ui.setupUi(self) self.ui.textBrowser.setWindowTitle('About')#doesn't work with open ("About.html", 'r') as myfile: helpHtml=myfile.read() self.ui.textBrowser.setHtml(helpHtml)
def __init__(self, parent=None): QDialog.__init__( self ) # Constructs a dialog with parent parent. self being ImageDailog # Set up the UI from Designer: self.ui = Ui_IODialog() self.ui.setupUi(self) self.ui.textBrowser.setWindowTitle('About') #doesn't work with open("About.html", 'r') as myfile: helpHtml = myfile.read() self.ui.textBrowser.setHtml(helpHtml)
class ArduinoNanoIOHelpDialog(QtGui.QDialog): def __init__(self, parent=None): QDialog.__init__( self ) # Constructs a dialog with parent parent. self being ImageDailog # Set up the UI from Designer: self.ui = Ui_IODialog() self.ui.setupUi(self) with open("ArdNanoIO.html", 'r') as myfile: helpHtml = myfile.read() self.ui.textBrowser.setHtml(helpHtml)