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

gui/log: fix layout problems

This commit is contained in:
Sebastien Bourdeauducq 2015-11-24 23:04:01 +08:00
parent c6ccc87f54
commit 3c0efb3ad5
2 changed files with 5 additions and 0 deletions

View File

@ -175,6 +175,10 @@ class LogDock(dockarea.Dock):
self.log.setSelectionMode(QtGui.QAbstractItemView.NoSelection)
self.log.horizontalHeader().setResizeMode(
QtGui.QHeaderView.ResizeToContents)
self.log.horizontalHeader().setStretchLastSection(True)
self.log.verticalHeader().setResizeMode(
QtGui.QHeaderView.ResizeToContents)
self.log.verticalHeader().hide()
self.log.setHorizontalScrollMode(
QtGui.QAbstractItemView.ScrollPerPixel)
self.log.setShowGrid(False)

View File

@ -55,6 +55,7 @@ class ArgumentsDemo(EnvExperiment):
def run(self):
logging.error("logging test: error")
logging.warning("logging test: warning")
logging.warning("logging test:" + " this is a very long message."*15)
logging.info("logging test: info")
logging.debug("logging test: debug")