Skip to content

Commit

Permalink
trying styles and UI changes
Browse files Browse the repository at this point in the history
unstable right now
  • Loading branch information
techy4shri committed Jan 25, 2025
1 parent 2cf1cfc commit 6f7c1ed
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,15 @@ def init_ui(self):
'''
exe_layout = QHBoxLayout()
exe_label = QLabel("Executable:")
exe_layout.addWidget(exe_label)
layout.addLayout(exe_layout)
self.app_input = QLineEdit(self)
self.app_input.setPlaceholderText("Browse executables to launch")
layout.addWidget(self.app_input)
exe_layout.addWidget(self.app_input)
self.app_input.setMinimumSize(400, 20)
self.app_input.setMaximumSize(80, 20)
exe_layout.setAlignment(Qt.AlignmentFlag.AlignLeft)
exe_layout.addWidget(exe_label)
layout.addLayout(exe_layout)

# browse button to select the executable file
# only searches for .exe files, no error handling needed therefore
Expand Down Expand Up @@ -89,7 +92,7 @@ def init_ui(self):
self.run_button = QPushButton("Run", self)
self.run_button.clicked.connect(self.run_app)
layout.addWidget(self.run_button)
self.run_button.setMinimumSize(60, 20)
self.run_button.setMinimumSize(80, 40)
self.run_button.setMaximumSize(100, 40)
layout.addWidget(
self.run_button, alignment=Qt.AlignmentFlag.AlignCenter
Expand Down

0 comments on commit 6f7c1ed

Please sign in to comment.