MCPcopy Create free account
hub / github.com/geekcomputers/Python / create_show_details_page1

Function create_show_details_page1

bank_managment_system/QTFrontend.py:891–919  ·  view source on GitHub ↗
(parent, title)

Source from the content-addressed store, hash-verified

889
890
891def create_show_details_page1(parent, title):
892 page, main_layout = create_page_with_header(parent, title)
893 content_frame = create_styled_frame(page)
894 content_frame.setSizePolicy(
895 QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Expanding
896 )
897 content_layout = QtWidgets.QVBoxLayout(content_frame)
898
899 form_frame = create_styled_frame(
900 content_frame,
901 min_size=(400, 200),
902 style="background-color: #ffffff; border-radius: 15px; padding: 10px;",
903 )
904 form_layout = QtWidgets.QVBoxLayout(form_frame)
905 form_layout.setSpacing(3)
906 # Define input fields
907 bannk_user = create_input_field(
908 form_frame, "Enter Bank account Number :", min_label_size=(180, 0)
909 )
910 form_layout.addWidget(bannk_user[0])
911 user_account_number = bannk_user[1]
912 submit_button = create_styled_button(form_frame, "Submit", min_size=(100, 50))
913 form_layout.addWidget(submit_button)
914 content_layout.addWidget(
915 form_frame, 0, QtCore.Qt.AlignHCenter | QtCore.Qt.AlignVCenter
916 )
917 main_layout.addWidget(content_frame)
918
919 return page, (user_account_number, submit_button)
920
921
922def create_show_details_page2(parent, title):

Callers 1

setup_main_windowFunction · 0.85

Calls 4

create_page_with_headerFunction · 0.85
create_styled_frameFunction · 0.85
create_input_fieldFunction · 0.85
create_styled_buttonFunction · 0.85

Tested by

no test coverage detected