diff --git a/application/app.ini b/application/app.ini new file mode 100644 index 0000000..e69de29 diff --git a/application/config.py b/application/config.py new file mode 100644 index 0000000..31cc96a --- /dev/null +++ b/application/config.py @@ -0,0 +1,7 @@ +# Lucas Mathews - Fontys Student ID: 5023572 +# Banking System Config Parser + +import configparser + +CONFIG = configparser.ConfigParser() +CONFIG.read("application/app.ini") diff --git a/application/connection.py b/application/connection.py new file mode 100644 index 0000000..db1afbf --- /dev/null +++ b/application/connection.py @@ -0,0 +1,8 @@ +# Lucas Mathews - Fontys Student ID: 5023572 +# Banking System App Connection file + +import requests +from config import CONFIG + +def get_connection(): + return requests.get(CONFIG["api"]["url"]) # Returns the connection to the API \ No newline at end of file diff --git a/application/login.py b/application/login.py new file mode 100644 index 0000000..3e07133 --- /dev/null +++ b/application/login.py @@ -0,0 +1,28 @@ +# Lucas Mathews - Fontys Student ID: 5023572 +# Banking System App Login Page + +from tkinter import * +import customtkinter + + +customtkinter.set_appearance_mode("System") # Modes: system (default), light, dark +customtkinter.set_default_color_theme("dark-blue") # Themes: blue (default), dark-blue, green + +root = customtkinter.CTk() + +root.title("Luxbank Login") +root.iconbitmap("application/luxbank.ico") +root.geometry("400x300") + +label = customtkinter.CTkLabel(root, text="Luxbank", font=("Helvetica", 24)) +label.pack(pady=20) + +username = customtkinter.CTkEntry(root, placeholder_text="Client ID") +username.pack(pady=20) +password = customtkinter.CTkEntry(root, placeholder_text="Password", show="*") +password.pack(pady=10) + +login_button= customtkinter.CTkButton(root, text="Login", command=lambda: print("Login")) +login_button.pack(pady=15) + +root.mainloop() \ No newline at end of file diff --git a/application/luxbank.ico b/application/luxbank.ico new file mode 100644 index 0000000..3dfc5c8 Binary files /dev/null and b/application/luxbank.ico differ