Skip to content

Commit

Permalink
OWWidget: Size policy for I/O summary
Browse files Browse the repository at this point in the history
  • Loading branch information
ales-erjavec committed Nov 30, 2018
1 parent 7a8ac3d commit 64e66ae
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions Orange/widgets/widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -546,12 +546,18 @@ def __info(self):

sb = self.statusBar()
if sb is not None:
in_msg = MessagesWidget(objectName="input-summary")
in_msg.setVisible(False)
in_msg.setDefaultStyleSheet(css)
out_msg = MessagesWidget(objectName="output-summary")
out_msg.setVisible(False)
out_msg.setDefaultStyleSheet(css)
in_msg = MessagesWidget(
objectName="input-summary", visible=False,
defaultStyleSheet=css,
sizePolicy=QSizePolicy(QSizePolicy.Preferred,
QSizePolicy.Preferred)
)
out_msg = MessagesWidget(
objectName="output-summary", visible=False,
defaultStyleSheet=css,
sizePolicy=QSizePolicy(QSizePolicy.Preferred,
QSizePolicy.Preferred)
)
# Insert a separator if these are not the first elements
# TODO: This needs a better check.
if sb.findChildren(SimpleButton):
Expand Down

0 comments on commit 64e66ae

Please sign in to comment.