def add_command(): back.insert(date_text.get(), earning_text.get(), exercise_text.get(), study_text.get(), diet_text.get(), python_text.get()) list.delete(0, END) list.insert(END, (date_text.get(), earning_text.get(), exercise_text.get(), study_text.get(), diet_text.get(), python_text.get()))
def add_command(): back.insert(name_text.get(), address_text.get(), phone_number_text.get(), noof_text.get(), roomtype_text.get(), amount_text.get()) list1.delete(0, END) list1.insert(END, (name_text.get(), address_text.get(), phone_number_text.get(), noof_text.get(), roomtype_text.get(), amount_text.get()))
def add_command(): back.insert(date_text.get(), time_text.get(), study_text.get(), hour_text.get(), note_text.get(), log_text.get()) list.delete(0, END) list.insert(END, (date_text.get(), time_text.get(), study_text.get(), hour_text.get(), note_text.get(), log_text.get()))
def addcom(): back.insert(datev.get(), wakev.get(), grev.get(), majorv.get(), univ.get(), ielv.get()) list.delete(0, END) list.insert(END, (datev.get(), wakev.get(), grev.get(), majorv.get(), univ.get(), ielv.get()))
def insert_command(): tree.delete(*tree.get_children()) back.insert(school_text.get(), date_text.get(), Month_text.get(), year_text.get(), day_text.get(), session_text.get(), Present_text.get(), Total_text.get()) for row in back.view(): tree.insert('', END, text=row[0], values=(row[1], row[2], row[3], row[4], row[5], row[6], row[7], row[8]))
def add_command(): back.insert(title_text.get(), author_text.get(), year_text.get(), isbn_text.get()) list1.delete(0, END) list1.insert(END, (title_text.get(), author_text.get(), year_text.get(), isbn_text.get()))
def add_command(): back.insert(name_text.get(), address_text.get(), phone_number.get(), stay_duration.get(), room_type.get(), amount_text.get()) #list1.delete(0,END) #list1.insert(END,(name_text.get(),address_text.get(),phone_number.get(),stay_duration.get(),room_type.get(),amount_text.get())) view_command()
def addcommand(): back.insert(name_text.get(), department_text.get(), year_text.get(), sid_text.get()) list1.delete(0, END) list1.insert(END, (name_text.get(), department_text.get(), year_text.get(), sid_text.get()))
#!/usr/bin/env python3 import back import cgi import json print("Content-type:text/html\r\n\r\n") form = cgi.FieldStorage() uname = form.getvalue('username') pswd1 = form.getvalue('password') pswd2 = form.getvalue('pswd') mobile = form.getvalue('mobile') address = form.getvalue('address') if pswd1 == pswd2: back.create() back.insert(uname, pswd1, mobile, address) rows = back.view(uname) data = {} data['User'] = [] for a in rows: temp = "{\"Username\" " + ": \"" + str( a[0]) + "\"," + " \"Mobile\"" + ": \"" + str( a[2]) + "\"," + " \"Address\"" + ": \"" + str(a[3]) + "\"}" temp = json.loads(temp) data['User'].append(temp) with open('../html/after/profile.json', 'w') as outfile: json.dump(data, outfile) redirectURL = "http://localhost/after/index.html" print("Content-type:text/html\r\n\r\n") print('<html>') print('<head>')
def add_comm(): back.insert(e1_v.get(),e2_v.get(),e3_v.get(),e4_v.get()) lb.delete(0,END) lb.insert(END, (e1_v.get(),e2_v.get(),e3_v.get(),e4_v.get()))
def add_command(): back.insert(site_adi.get(), site_adres.get(), site_sifre.get()) list1.delete(0, END) list1.insert(END, (site_adi.get(), site_adres.get(), site_sifre.get()))