class ApiCompatTestDialog(QtGui.QDialog): def __init__(self): QtGui.QDialog.__init__(self) # Set up the user interface from Designer. self.ui = Ui_ApiCompatTest() self.ui.setupUi(self) def write(self, m): self.ui.text.moveCursor(QtGui.QTextCursor.End) self.ui.text.insertPlainText( m ) def flush(self): pass
def __init__(self): QtGui.QDialog.__init__(self) # Set up the user interface from Designer. self.ui = Ui_ApiCompatTest() self.ui.setupUi(self)