forked from M-Labs/artiq
gui: better log lookandfeel
This commit is contained in:
parent
3a06e22b67
commit
1a4028ca92
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue