Sorry for dragging the entire thread for a millennium and making it way too unsolvable, but I have solved majority of the problems, it's just that I want to fix my delete code but I have no idea where to start with it.
def delete_record():
with open('StudentDetails.csv', 'wb',) as csvfile:
csvFileWriter = csv.writer(csvfile)
a = delete_student_entry.get()
b = delete_password_entry.get()
csvFileWriter.writerow([a,b])
I want the program to take the input from the entry box in the window (as I am using Tkinter) and delete an entire row from the input. I will welcome any rewrites of the code as it will be a subroutine for my "delete student" menu (unconventional, I know, but using other forms of calling the subroutine will result in an error in which I had no choice but to do so...)