Пример #1
0
 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)
Пример #2
0
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 )
Пример #3
0
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)
Пример #4
0
 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)