├── demo └── python-mysql-gui(v1).jpg ├── .idea ├── .gitignore ├── misc.xml ├── modules.xml ├── aws.xml ├── composerJson.xml └── inspectionProfiles │ └── Project_Default.xml ├── README.md ├── Crud-Application-Python-MySQL.iml └── src └── DemoGUI.py /demo/python-mysql-gui(v1).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindula-Dilthushan/Crud-Application-Python-MySQL/HEAD/demo/python-mysql-gui(v1).jpg -------------------------------------------------------------------------------- /.idea/.gitignore: -------------------------------------------------------------------------------- 1 | # Default ignored files 2 | /shelf/ 3 | /workspace.xml 4 | # Datasource local storage ignored files 5 | /dataSources/ 6 | /dataSources.local.xml 7 | # Editor-based HTTP Client requests 8 | /httpRequests/ 9 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Crud-Application-Python-MySQL 2 | This is crud application. python and mysql 3 | 4 | # Sample GUI (v1) 5 | ![image](https://github.com/Mindula-Dilthushan/Crud-Application-Python-MySQL/blob/master/demo/python-mysql-gui(v1).jpg) 6 | -------------------------------------------------------------------------------- /.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /.idea/aws.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | -------------------------------------------------------------------------------- /.idea/composerJson.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /Crud-Application-Python-MySQL.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /src/DemoGUI.py: -------------------------------------------------------------------------------- 1 | # Mindula Dilthushan 2 | from tkinter import Tk, Button, Label, Scrollbar, Listbox, StringVar, Entry, W, E, N, S, END 3 | from tkinter import ttk 4 | from tkinter import messagebox 5 | 6 | root = Tk() 7 | root.title("My First Crud App Python-MySQL") 8 | root.configure(background="#54a0ff") 9 | root.geometry("1000x650") 10 | root.resizable(width=False,height=False) 11 | 12 | id_label = ttk.Label(root, text="ID", background="#54a0ff", font=("VALORANT", 16)) 13 | id_label.grid(row=0, column=0, sticky=W) 14 | id_text = StringVar() 15 | id_entry = ttk.Entry(root, width=25, textvariable=id_text) 16 | id_entry.grid(row=0, column=1, sticky=W) 17 | 18 | name_label = ttk.Label(root, text="Name", background="#54a0ff", font=("VALORANT", 16)) 19 | name_label.grid(row=0, column=2, sticky=W) 20 | name_text = StringVar() 21 | name_entry = ttk.Entry(root, width=25, textvariable=name_text) 22 | name_entry.grid(row=0, column=3, sticky=W) 23 | 24 | address_label = ttk.Label(root, text="Address", background="#54a0ff", font=("VALORANT", 14)) 25 | address_label.grid(row=0, column=4, sticky=W) 26 | address_text = StringVar() 27 | address_entry = ttk.Entry(root, width=25, textvariable=address_text) 28 | address_entry.grid(row=0, column=5, sticky=W) 29 | 30 | email_label = ttk.Label(root, text="Email", background="#54a0ff", font=("VALORANT", 14)) 31 | email_label.grid(row=0, column=6, sticky=W) 32 | email_text = StringVar() 33 | email_entry = ttk.Entry(root, width=25, textvariable=email_text) 34 | email_entry.grid(row=0, column=7, sticky=W) 35 | 36 | add_btn = Button(root, text="Save", bg="#1dd1a1", fg="white", font="VALORANT 10", command="") 37 | add_btn.grid(row=0, column=8, sticky=W) 38 | 39 | list_bx = Listbox(root, height=16, width=40, font="VALORANT 13", bg="#95afc0") 40 | list_bx.grid(row=3, column=1, columnspan=14, sticky=W + E, pady=40, padx=15) 41 | 42 | scroll_bar = Scrollbar(root) 43 | scroll_bar.grid(row=1, column=9, rowspan=14, sticky=W) 44 | 45 | list_bx.configure(yscrollcommand=scroll_bar.set) 46 | scroll_bar.configure(command=list_bx.yview) 47 | 48 | delete_btn = Button(root, text="Delete", bg="#1dd1a1", fg="white", font="VALORANT", command="") 49 | delete_btn.grid(row=15, column=2) 50 | 51 | update_btn = Button(root, text="Update", bg="#1dd1a1", fg="white", font="VALORANT" , command="") 52 | update_btn.grid(row=15, column=3) 53 | 54 | view_all_btn = Button(root, text="View All", bg="#1dd1a1", fg="white", font="VALORANT" , command="") 55 | view_all_btn.grid(row=15, column=4) 56 | 57 | clear_btn = Button(root, text="Clear", bg="#1dd1a1", fg="white", font="VALORANT" , command="") 58 | clear_btn.grid(row=15, column=5) 59 | 60 | exit_btn = Button(root,text="Exit", bg="#1dd1a1", fg="white", font="VALORANT" , command="") 61 | exit_btn.grid(row=15, column=6) 62 | 63 | root.mainloop() -------------------------------------------------------------------------------- /.idea/inspectionProfiles/Project_Default.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 135 | --------------------------------------------------------------------------------