Skip to content

Commit

Permalink
gui/log: fix layout problems
Browse files Browse the repository at this point in the history
sbourdeauducq committed Nov 24, 2015
1 parent c6ccc87 commit 3c0efb3
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions artiq/gui/log.py
Original file line number Diff line number Diff line change
@@ -175,6 +175,10 @@ def __init__(self, manager, name, log_sub):
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)
1 change: 1 addition & 0 deletions examples/master/repository/arguments_demo.py
Original file line number Diff line number Diff line change
@@ -55,6 +55,7 @@ def build(self):
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")

0 comments on commit 3c0efb3

Please sign in to comment.