Ejemplo n.º 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)
Ejemplo n.º 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 )
Ejemplo n.º 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)
Ejemplo n.º 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)