From 3c0efb3ad5ef9f85e374a424eaf1e3522b56401e Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Tue, 24 Nov 2015 23:04:01 +0800 Subject: [PATCH] gui/log: fix layout problems --- artiq/gui/log.py | 4 ++++ examples/master/repository/arguments_demo.py | 1 + 2 files changed, 5 insertions(+) diff --git a/artiq/gui/log.py b/artiq/gui/log.py index a85c9d1c9..abec2280a 100644 --- a/artiq/gui/log.py +++ b/artiq/gui/log.py @@ -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) diff --git a/examples/master/repository/arguments_demo.py b/examples/master/repository/arguments_demo.py index 3bfcde254..a1a903c7a 100644 --- a/examples/master/repository/arguments_demo.py +++ b/examples/master/repository/arguments_demo.py @@ -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")