(parent, title, label_text)
| 207 | |
| 208 | |
| 209 | def search_result(parent, title, label_text): |
| 210 | page, main_layout = create_page_with_header(parent, title) |
| 211 | content_frame = create_styled_frame(page) |
| 212 | content_frame.setSizePolicy( |
| 213 | QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Expanding |
| 214 | ) |
| 215 | content_layout = QtWidgets.QVBoxLayout(content_frame) |
| 216 | content_layout.alignment |
| 217 | |
| 218 | form_frame = create_styled_frame( |
| 219 | content_frame, |
| 220 | min_size=(400, 200), |
| 221 | style="background-color: #ffffff; border-radius: 15px; padding: 10px;", |
| 222 | ) |
| 223 | form_layout = QtWidgets.QVBoxLayout(form_frame) |
| 224 | form_layout.setSpacing(3) |
| 225 | # Define input fields |
| 226 | user = create_input_field(form_frame, label_text, min_label_size=(180, 0)) |
| 227 | form_layout.addWidget(user[0]) |
| 228 | user_account_number = user[1] |
| 229 | user_account_number.setFont(FONT_SIZE) |
| 230 | submit_button = create_styled_button(form_frame, "Submit", min_size=(100, 50)) |
| 231 | form_layout.addWidget(submit_button) |
| 232 | content_layout.addWidget( |
| 233 | form_frame, 0, QtCore.Qt.AlignHCenter | QtCore.Qt.AlignVCenter |
| 234 | ) |
| 235 | main_layout.addWidget(content_frame) |
| 236 | |
| 237 | return page, (user_account_number, submit_button) |
| 238 | |
| 239 | |
| 240 | # ------------------------------------------------------------------------------------------------------------- |
no test coverage detected