2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-25 03:08:27 +08:00

gui: better log lookandfeel

This commit is contained in:
Sebastien Bourdeauducq 2015-07-23 23:06:37 +08:00
parent 3a06e22b67
commit 1a4028ca92

View File

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