#Python 用Sqlite3做模拟银行系统(3)

该文接着上一篇直接上干货:
#系统基本操作9-主要系统结构构造:

def main():
    create_account()

    global root
    root = tk.Tk()
    root.title(“Bank System”)

系统基本操作10-主要系统应用存钱功能:

# Deposit
    deposit_frame = tk.Frame(root)
    deposit_frame.pack(pady=10)
    tk.Label(deposit_frame, text=”Deposit Account Name:”).grid(row=0, column=0)
    deposit_account_entry = tk.Entry(deposit_frame)
    deposit_account_entry.grid(row=0, column=1, sticky=”ew”) # Make entry widgets expand horizontally
    tk.Label(deposit_frame, text=”Deposit Amount:”).grid(row=1, column=0)
    deposit_amount_entry = tk.Entry(deposit_frame)
    deposit_amount_entry.grid(row=1, column=1, sticky=”ew”) # Make entry widgets expand horizontally
    tk.Label(deposit_frame, text=”Note:”).grid(row=2, column=0)
    deposit_note_entry = tk.Entry(deposit_frame)
    deposit_note_entry.grid(row=2, column=1, sticky=”ew”) # Make entry widgets expand horizontally
    tk.Button(deposit_frame, text=”Deposit”, command=lambda: deposit_submit(deposit_account_entry, deposit_amount_e

作者:Flash The Dash

物联沃分享整理
物联沃-IOTWORD物联网 » #Python 用Sqlite3做模拟银行系统(3)

发表回复