def __init__(self, parent): super(DockLogSubWindow, self).__init__(parent) self.setWindowTitle('Log File') self.setAllowedAreas(QtCore.Qt.BottomDockWidgetArea) widget = QtGui.QWidget() self.subwin_abq = Ui_LogSubWindow() self.subwin_abq.setupUi(widget) self.setWidget(widget) parent.addDockWidget(QtCore.Qt.BottomDockWidgetArea, self)
class DockLogSubWindow(QtGui.QDockWidget): def __init__(self, parent): super(DockLogSubWindow,self).__init__(parent) self.setWindowTitle( 'Log File' ) self.setAllowedAreas(QtCore.Qt.BottomDockWidgetArea) widget = QtGui.QWidget() self.subwin_abq = Ui_LogSubWindow() self.subwin_abq.setupUi(widget) self.setWidget(widget) parent.addDockWidget(QtCore.Qt.BottomDockWidgetArea, self) def append(self,text): self.subwin_abq.plainTextEdit.moveCursor(QtGui.QTextCursor.End) self.subwin_abq.plainTextEdit.insertPlainText( text )
class DockLogSubWindow(QtGui.QDockWidget): def __init__(self, parent): super(DockLogSubWindow, self).__init__(parent) self.setWindowTitle('Log File') self.setAllowedAreas(QtCore.Qt.BottomDockWidgetArea) widget = QtGui.QWidget() self.subwin_abq = Ui_LogSubWindow() self.subwin_abq.setupUi(widget) self.setWidget(widget) parent.addDockWidget(QtCore.Qt.BottomDockWidgetArea, self) def append(self, text): self.subwin_abq.plainTextEdit.moveCursor(QtGui.QTextCursor.End) self.subwin_abq.plainTextEdit.insertPlainText(text)
def __init__(self, parent): super(DockLogSubWindow,self).__init__(parent) self.setWindowTitle( 'Log File' ) self.setAllowedAreas(QtCore.Qt.BottomDockWidgetArea) widget = QtGui.QWidget() self.subwin_abq = Ui_LogSubWindow() self.subwin_abq.setupUi(widget) self.setWidget(widget) parent.addDockWidget(QtCore.Qt.BottomDockWidgetArea, self)