MCPcopy Index your code
hub / github.com/geekcomputers/Python / update_employee_search_submit

Function update_employee_search_submit

bank_managment_system/QTFrontend.py:1659–1676  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1657 update_employee_other[6].clicked.connect(lambda: update_employee_submit())
1658
1659 def update_employee_search_submit():
1660 try:
1661 user_data = backend.get_details(
1662 int(update_empolyee_search_other[0].text().strip())
1663 )
1664 print("Featch data: ", user_data)
1665 name_edit.setText(str(user_data[1]))
1666 Age_edit.setText(str(user_data[2]))
1667 Address_edit.setText(str(user_data[3]))
1668 Balance_edit.setText(str(user_data[4]))
1669 Mobile_number_edit.setText(str(user_data[6]))
1670 Balance_edit.setDisabled(True)
1671 account_type_dropdown.setCurrentText(str(user_data[5]))
1672 stacked_widget.setCurrentIndex(EMPLOYEE_UPDATE_ACCOUNT_PAGE)
1673 except ValueError:
1674 show_popup_message(
1675 stacked_widget, "Enter valid numeric employee ID.", EMPLOYEE_MENU_PAGE
1676 )
1677
1678 def update_employee_submit():
1679 try:

Callers 1

setup_main_windowFunction · 0.85

Calls 2

show_popup_messageFunction · 0.85
get_detailsMethod · 0.80

Tested by

no test coverage detected