Skip to content
This repository has been archived by the owner on Dec 29, 2023. It is now read-only.

Commit

Permalink
hack: try fallback policy setting fo expanding window size
Browse files Browse the repository at this point in the history
Fixes #342
  • Loading branch information
srevinsaju committed Jan 1, 2023
1 parent 171c49a commit 332175e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion guiscrcpy/ui/pyside2/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ def setupUi(self, MainWindow):
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(MainWindow.sizePolicy().hasHeightForWidth())
MainWindow.setSizePolicy(sizePolicy)
try:
MainWindow.setSizePolicy(sizePolicy)
except TypeError:
MainWindow.setSizePolicy(QSizePolicy.MinimumExpanding, QSizePolicy.MinimumExpanding)
MainWindow.setMinimumSize(QSize(500, 420))
font = QFont()
font.setFamily(u"Titillium Web")
Expand Down

1 comment on commit 332175e

@vercel
Copy link

@vercel vercel bot commented on 332175e Jan 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.