Skip to content

Commit

Permalink
Move Qt Designer related styling in PyDMEmbeddedDisplay to init_for_d…
Browse files Browse the repository at this point in the history
…esigner
  • Loading branch information
Ivan Sinkarenko committed Sep 16, 2020
1 parent 831651c commit 0cb218f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions pydm/widgets/embedded_display.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,9 @@ def __init__(self, parent=None):
self.layout.addWidget(self.err_label)
self.layout.setContentsMargins(0, 0, 0, 0)
self.err_label.hide()
if not is_pydm_app():
self.setFrameShape(QFrame.Box)
else:
self.setFrameShape(QFrame.NoFrame)


def init_for_designer(self):
self.setFrameShape(QFrame.Box)

def minimumSizeHint(self):
"""
Expand Down

0 comments on commit 0cb218f

Please sign in to comment.