start customTKinter frontend
This commit is contained in:
0
application/app.ini
Normal file
0
application/app.ini
Normal file
7
application/config.py
Normal file
7
application/config.py
Normal file
@@ -0,0 +1,7 @@
|
||||
# Lucas Mathews - Fontys Student ID: 5023572
|
||||
# Banking System Config Parser
|
||||
|
||||
import configparser
|
||||
|
||||
CONFIG = configparser.ConfigParser()
|
||||
CONFIG.read("application/app.ini")
|
||||
8
application/connection.py
Normal file
8
application/connection.py
Normal file
@@ -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
|
||||
28
application/login.py
Normal file
28
application/login.py
Normal file
@@ -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()
|
||||
BIN
application/luxbank.ico
Normal file
BIN
application/luxbank.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 104 KiB |
Reference in New Issue
Block a user