Skip to content

Commit

Permalink
perf:创建界面之后固定界面(taojy123#148)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZutJoe committed Oct 11, 2022
1 parent 5cff3f4 commit d0743c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions KeymouseGo.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ def main():
if ratio_w > 1 and ratio_h > 1:
resize_layout(ui, ratio_w, ratio_h)

ui.setFixedSize(ui.width(), ui.height())
ui.show()
sys.exit(app.exec_())

Expand Down
1 change: 1 addition & 0 deletions UIFileDialogFunc.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ class FileDialog(Ui_Dialog):
def __init__(self):
self.dialog = QDialog()
self.setupUi(self.dialog)
self.dialog.setFixedSize(self.dialog.width(), self.dialog.height())
self.choice.clicked.connect(self.choice_file)
self.edit.clicked.connect(self.edit_file)
self.rename.clicked.connect(self.rename_file)
Expand Down

0 comments on commit d0743c8

Please sign in to comment.