# importing all modules import tkinter.messagebox from tkinter import * import backend backend.connect_database() # A function for check that acc_no is integer or not def check_string_in_account_no(check_acc_no): r = check_acc_no.isdigit() return r # all buttons of page2 def create(): def create_customer_in_database(): def delete_create(): create_employee_frame.grid_forget() page2() name = entry5.get() age = entry6.get() address = entry7.get() balance = entry8.get() acc_type = entry9.get() mobile_number = entry10.get() if len(name) != 0 and len(age) != 0 and len(address) != 0 and len( balance) != 0 and len(acc_type) != 0 and len( mobile_number) != 0:
#importing all modules from tkinter import * from functools import partial import tkinter.messagebox import backend backend.connect_database() #A function for check that acc_no is integer or not def check_string_in_account_no(check_acc_no): r=check_acc_no.isdigit() return r #all buttons of page2 def create(): def create_customer_in_database(): def delete_create(): create_employee_frame.grid_forget() page2() name = entry5.get() age = entry6.get() address = entry7.get() balance = entry8.get() acc_type = entry9.get() mobile_number = entry10.get() if len(name) != 0 and len(age) != 0 and len(address) != 0 and len(balance) != 0 and len(acc_type) != 0 and len( mobile_number) != 0: acc_no = backend.create_customer(name, age, address, balance, acc_type, mobile_number) label = Label(create_employee_frame, text='Your account number is {}'.format(acc_no))