forked from M-Labs/artiq
1
0
Fork 0

gui: better log lookandfeel

This commit is contained in:
Sebastien Bourdeauducq 2015-07-23 23:06:37 +08:00
parent 3a06e22b67
commit 1a4028ca92
1 changed files with 5 additions and 1 deletions

View File

@ -1,6 +1,6 @@
import asyncio import asyncio
from quamash import QtGui from quamash import QtGui, QtCore
from pyqtgraph import dockarea from pyqtgraph import dockarea
from artiq.protocols.sync_struct import Subscriber from artiq.protocols.sync_struct import Subscriber
@ -25,6 +25,10 @@ class LogDock(dockarea.Dock):
self.log.setSelectionMode(QtGui.QAbstractItemView.NoSelection) self.log.setSelectionMode(QtGui.QAbstractItemView.NoSelection)
self.log.horizontalHeader().setResizeMode( self.log.horizontalHeader().setResizeMode(
QtGui.QHeaderView.ResizeToContents) QtGui.QHeaderView.ResizeToContents)
self.log.setHorizontalScrollMode(
QtGui.QAbstractItemView.ScrollPerPixel)
self.log.setShowGrid(False)
self.log.setTextElideMode(QtCore.Qt.ElideNone)
self.addWidget(self.log) self.addWidget(self.log)
@asyncio.coroutine @asyncio.coroutine