import tkinter import tkinter as tk from tkinter import * import random import messagebox import webbrowser import os import sys root = tk.Tk() root.geometry("1300x685+30+10") root.title("Sup Market") root.resizable(False,False) #root.iconbitmap("") title= Label(root, text="Sup Market,Managment", fg="White",bg="black",font=("Times New Roman",12,"bold") ) title.pack(fill=X) #==== (Variables : المتغيرات ) === rez = DoubleVar() borgel = DoubleVar() fasoli = DoubleVar() ades = DoubleVar() makrona = DoubleVar() frika = DoubleVar() homes = DoubleVar() fol = DoubleVar() mlah = DoubleVar() skar = DoubleVar() flflahmar = DoubleVar() flflasoad = DoubleVar() lobia = DoubleVar() admami = DoubleVar() qmah = DoubleVar() shair = DoubleVar() shofan = DoubleVar() zara = DoubleVar() rez1 = DoubleVar() borgel1 = DoubleVar() fasoli1 = DoubleVar() ades1 = DoubleVar() makrona1 = DoubleVar() frika1 = DoubleVar() homes1 = DoubleVar() fol1 = DoubleVar() mlah1 = DoubleVar() skar1 = DoubleVar() flflahmar1 = DoubleVar() flflasoad1 = DoubleVar() lobia1 = DoubleVar() admami1 = DoubleVar() qmah1 = DoubleVar() shair1 = DoubleVar() shofan1 = DoubleVar() zara1 = DoubleVar() rez2 = DoubleVar() borgel2 = DoubleVar() fasoli2 = DoubleVar() ades2 = DoubleVar() makrona2 = DoubleVar() frika2 = DoubleVar() homes2 = DoubleVar() fol2 = DoubleVar() mlah2 = DoubleVar() skar2 = DoubleVar() flflahmar2 = DoubleVar() flflasoad2 = DoubleVar() lobia2 = DoubleVar() admami2 = DoubleVar() qmah2 = DoubleVar() #==== [بقوليات : q1 => q18] === q1 = IntVar() q2 = IntVar() q3 = IntVar() q4 = IntVar() q5 = IntVar() q6 = IntVar() q7 = IntVar() q8 = IntVar() q9 = IntVar() q10 = IntVar() q11 = IntVar() q12 = IntVar() q13 = IntVar() q14 = IntVar() q15 = IntVar() q16 = IntVar() q17 = IntVar() q18 = IntVar() #==== [لوازم منزلية : qq1 => qq18] === qq1 = IntVar() qq2 = IntVar() qq3 = IntVar() qq4 = IntVar() qq5 = IntVar() qq6 = IntVar() qq7 = IntVar() qq8 = IntVar() qq9 = IntVar() qq10 = IntVar() qq11 = IntVar() qq12 = IntVar() qq13 = IntVar() qq14 = IntVar() qq15 = IntVar() qq16 = IntVar() qq17 = IntVar() qq18 = IntVar() #==== [بقوليات : qqq1 => qqq15] === qqq1 = IntVar() qqq2 = IntVar() qqq3 = IntVar() qqq4 = IntVar() qqq5 = IntVar() qqq6 = IntVar() qqq7 = IntVar() qqq8 = IntVar() qqq9 = IntVar() qqq10 = IntVar() qqq11 = IntVar() qqq12 = IntVar() qqq13 = IntVar() qqq14 = IntVar() qqq15 = IntVar() nemo = StringVar() phono = StringVar() fatora1 = StringVar() x = random.randint (1000, 9999) fatora1.set (str(x)) #==== متغيرات الحساب الكلي === bacoliat = StringVar() adoat = StringVar() kahraba = StringVar() Alls = StringVar() #====== بقوليات ========= def total(): rez = q1.get()*1.5 borgel = q2.get()*0.5 fasoli = q3.get()*1 ades = q4.get()*1.5 makrona = q5.get()*2 frika = q6.get()*2 homes = q7.get()*1 fol = q8.get()*1 mlah = q9.get()*1.5 skar = q10.get()*1 flflahmar = q11.get()*1.5 flflasoad = q12.get()*1 lobia = q13.get()*1.5 admami = q14.get()*1 qmah = q15.get()*2 shair = q16.get()*1 qmah = q15.get()*2 shair = q16.get()*1 shofan = q17.get()*2 zara = q18.get()*1.5 totalito=float( rez+ borgel+ fasoli+ ades+ makrona+ frika+ homes+ fol+ mlah+ skar+ flflahmar+ flflasoad+ lobia+ admami+ qmah+ shair+ shofan+ zara ) bacoliat.set(str(totalito)+" $") #====== لوازم منزلية ========= rez1 = qq1.get()*1.5 borgel1 = qq2.get()*0.5 fasoli1 = qq3.get()*1 ades1 = qq4.get()*1.5 makrona1 = qq5.get()*2 frika1 = qq6.get()*2 homes1 = qq7.get()*1 fol1 = qq8.get()*1 mlah1 = qq9.get()*1.5 skar1 = qq10.get()*1 flflahmar1 = qq11.get()*1.5 flflasoad1 = qq12.get()*1 lobia1 = qq13.get()*1.5 admami1 = qq14.get()*1 qmah1 = qq15.get()*2 shair1 = qq16.get()*1 qmah1 = qq15.get()*2 shair1 = qq16.get()*1 shofan1 = qq17.get()*2 zara1 = qq18.get()*1.5 adoatdd = float( rez1+ borgel1+ fasoli1+ ades1+ makrona1+ frika1+ homes1+ fol1+ mlah1+ skar1+ flflahmar1+ flflasoad1+ lobia1+ admami1+ qmah1+ shair1+ shofan1+ zara1 ) adoat.set(str(adoatdd)+" $") #====== ادوات كهربائية ========= rez2 = qqq1.get()*30 borgel2 = qqq2.get()*40 fasoli2 = qqq3.get()*300 ades2 = qqq4.get()*40 makrona2 = qqq5.get()*2 frika2 = qqq6.get()*2 homes2 = qqq7.get()*1 fol2 = qqq8.get()*1 mlah2 = qqq9.get()*1.5 skar2 = qqq10.get()*1 flflahmar2 = qqq11.get()*1.5 flflasoad2 = qqq12.get()*1 lobia2 = qqq13.get()*1.5 admami2 = qqq14.get()*1 qmah2 = qqq15.get()*2 khrba = float( rez2+ borgel2+ fasoli2+ ades2+ makrona2+ frika2+ homes2+ fol2+ mlah2+ skar2+ flflahmar2+ flflasoad2+ lobia2+ admami2+ qmah2 ) kahraba.set(str(khrba)+" $") #====== مجموع المشتريات ========= allf = float(totalito+ khrba+ adoatdd ) Alls.set(str(allf)+" $") def welcome(): textarea.delete("1.0",END) textarea.insert(END,"\t السوبر الماركيت ترحب بكم ") textarea.insert(END,"\n======================================") textarea.insert(END,f'\n\t B.Num : {fatora1.get()}') textarea.insert(END,f'\n\t Name : {nemo.get()}') textarea.insert(END,f'\n\t Phone : {phono.get()}') textarea.insert(END,"\n======================================") textarea.insert(END,f"\nسعر كل كمية\t العدد \t المشتريات ") textarea.insert(END,"\n======================================") def clrx(): q1.set(0) q2.set(0) q3.set(0) q4.set(0) q5.set(0) q6.set(0) q7.set(0) q8.set(0) q9.set(0) q10.set(0) q11.set(0) q12.set(0) q13.set(0) q14.set(0) q15.set(0) q16.set(0) q17.set(0) q18.set(0) qq1.set(0) qq2.set(0) qq3.set(0) qq4.set(0) qq5.set(0) qq6.set(0) qq7.set(0) qq8.set(0) qq9.set(0) qq10.set(0) qq11.set(0) qq12.set(0) qq13.set(0) qq14.set(0) qq15.set(0) qq16.set(0) qq17.set(0) qq18.set(0) qqq1.set(0) qqq2.set(0) qqq3.set(0) qqq4.set(0) qqq5.set(0) qqq6.set(0) qqq7.set(0) qqq8.set(0) qqq9.set(0) qqq10.set(0) qqq11.set(0) qqq12.set(0) qqq13.set(0) qqq14.set(0) qqq15.set(0) nemo.set('') phono.set('') fatora1.set('') bacoliat.set('') adoat.set('') kahraba.set('') Alls.set('') def savex(): op=messagebox.askyesno("حفظ","هل تريد حفظ الفاتورة") if op>0: bb=textarea.get("1.0",END) fl=open("C:\\buy\\'+str(fatora.get())+'.txt","w",encoding="utf-8") fl.write(bb) fl.close() else: return def billing(): if nemo.get()=="" or phono.get()=="": messagebox.showerror("حدث خطا","لا يجوز ترك حقل الاسم ورقم الهاتف الفارغا") elif bacoliat.get()=="0.0 $" and adoat.get()=="0.0 $" and kahraba.get()=="0.0 $": messagebox.showerror(" حدث خطا"," هناك منتوجات محددة ولم يتم اختيار احدهها يجب اختيار عدد المنتجات") else: welcome() total() if q1.get()!=0: textarea.insert(END,f'\n{rez.get()}\t\t{q1.get()}\t\tالرز') if q2.get()!=0: textarea.insert(END,f'\n{borgel.get()}\t\t{q2.get()}\t\tبرغل') if q3.get()!=0: textarea.insert(END,f'\n{fasoli.get()}\t\t{q3.get()}\t\tفاصوليا') if q4.get()!=0: textarea.insert(END,f'\n{(ades.get())}\t\t{q4.get()}\t\tعدس') if q5.get()!=0: textarea.insert(END,f'\n{makrona.get()}\t\t{q5.get()}\t\tمعكرونة') if q6.get()!=0: textarea.insert(END,f'\n{frika.get()}\t\t{q6.get()}\t\tفريكة') if q7.get()!=0: textarea.insert(END,f'\n{homes.get()}\t\t{q7.get()}\t\tحمص') if q8.get()!=0: textarea.insert(END,f'\n{fol.get()}\t\t{q8.get()}\t\tفول') if q9.get()!=0: textarea.insert(END,f'\n{mlah.get()}\t\t{q9.get()}\t\tالملح') if q10.get()!=0: textarea.insert(END,f'\n{skar.get()}\t\t{q10.get()}\t\tسكر') if q11.get()!=0: textarea.insert(END,f'\n{flflahmar.get()}\t\t{q11.get()}\t\tفلفل احمر') if q12.get()!=0: textarea.insert(END,f'\n{flflasoad.get()}\t\t{q12.get()}\t\tفلفل اسود') if q13.get()!=0: textarea.insert(END,f'\n{lobia.get()}\t\t{q13.get()}\t\tاللوبيا') if q14.get()!=0: textarea.insert(END,f'\n{admami.get()}\t\t{q14.get()}\t\tالادمامي') if q15.get()!=0: textarea.insert(END,f'\n{qmah.get()}\t\t{q15.get()}\t\tالقمح') if q16.get()!=0: textarea.insert(END,f'\n{shair.get()}\t\t{q16.get()}\t\tالشعير') if q17.get()!=0: textarea.insert(END,f'\n{shofan.get()}\t\t{q17.get()}\t\tالشوفان') if q18.get()!=0: textarea.insert(END,f'\n{zara.get()}\t\t{q18.get()}\t\tالذرة') if qq1.get()!=0: textarea.insert(END,f'\n{rez1.get()}\t\t{qq1.get()}\t\tمصفاة') if qq2.get()!=0: textarea.insert(END,f'\n{borgel1.get()}\t\t{qq2.get()}\t\tصحن') if qq3.get()!=0: textarea.insert(END,f'\n{fasoli1.get()}\t\t{qq3.get()}\t\tكاس') if qq4.get()!=0: textarea.insert(END,f'\n{ades1.get()}\t\t{qq4.get()}\t\tابريق') if qq5.get()!=0: textarea.insert(END,f'\n{makrona1.get()}\t\t{qq5.get()}\t\tسكين') if qq6.get()!=0: textarea.insert(END,f'\n{frika1.get()}\t\t{qq6.get()}\t\tشوك') if qq7.get()!=0: textarea.insert(END,f'\n{homes1.get()}\t\t{qq7.get()}\t\tطنجرة') if qq8.get()!=0: textarea.insert(END,f'\n{fol1.get()}\t\t{qq8.get()}\t\tسلة') if qq9.get()!=0: textarea.insert(END,f'\n{mlah1.get()}\t\t{qq9.get()}\t\tملاعقا') if qq10.get()!=0: textarea.insert(END,f'\n{skar1.get()}\t\t{qq10.get()}\t\tصينية') if qq11.get()!=0: textarea.insert(END,f'\n{flflahmar1.get()}\t\t{qq11.get()}\t\tوعاء الخلط') if qq12.get()!=0: textarea.insert(END,f'\n{flflasoad1.get()}\t\t{qq12.get()}\t\tفتاحة العلب') if qq13.get()!=0: textarea.insert(END,f'\n{lobia1.get()}\t\t{qq13.get()}\t\tمقشرة') if qq14.get()!=0: textarea.insert(END,f'\n{admami1.get()}\t\t{qq14.get()}\t\tلوح التقطيع') if qq15.get()!=0: textarea.insert(END,f'\n{qmah1.get()}\t\t{qq15.get()}\t\tحفارة') if qq16.get()!=0: textarea.insert(END,f'\n{shair1.get()}\t\t{qq16.get()}\t\tسلة قمامة') if qq17.get()!=0: textarea.insert(END,f'\n{shofan1.get()}\t\t{qq17.get()}\t\tمنفضة') if qq18.get()!=0: textarea.insert(END,f'\n{zara1.get()}\t\t{qq18.get()}\t\tاكياس') if qqq1.get()!=0: textarea.insert(END,f'\n{rez2.get()}\t\t{qqq1.get()}\t\tمكنسة') if qqq2.get()!=0: textarea.insert(END,f'\n{borgel2.get()}\t\t{qqq2.get()}\t\tتلفزيون') if qqq3.get()!=0: textarea.insert(END,f'\n{fasoli2.get()}\t\t{qqq3.get()}\t\tغسالة') if qqq4.get()!=0: textarea.insert(END,f'\n{ades2.get()}\t\t{qqq4.get()}\t\tمكرويف') if qqq5.get()!=0: textarea.insert(END,f'\n{makrona2.get()}\t\t{qqq5.get()}\t\tخلاط') if qqq6.get()!=0: textarea.insert(END,f'\n{frika2.get()}\t\t{qqq6.get()}\t\tفرن غاز') if qqq7.get()!=0: textarea.insert(END,f'\n{homes2.get()}\t\t{qqq7.get()}\t\tمقلاة كهرباء') if qqq8.get()!=0: textarea.insert(END,f'\n{fol2.get()}\t\t{qqq8.get()}\t\tمروحة سقف') if qqq9.get()!=0: textarea.insert(END,f'\n{mlah2.get()}\t\t{qqq9.get()}\t\tمروحة ارضية') if qqq10.get()!=0: textarea.insert(END,f'\n{skar2.get()}\t\t{qqq10.get()}\t\tتلفزيون 32') if qqq11.get()!=0: textarea.insert(END,f'\n{flflahmar2.get()}\t\t{qqq11.get()}\t\tتلفزيون 43') if qqq12.get()!=0: textarea.insert(END,f'\n{flflasoad2.get()}\t\t{qqq12.get()}\t\tفلتر ماء') if qqq13.get()!=0: textarea.insert(END,f'\n{lobia2.get()}\t\t{qqq13.get()}\t\tغسالة اوتوماتيك') if qqq14.get()!=0: textarea.insert(END,f'\n{admami2.get()}\t\t{qqq14.get()}\t\tمكواة') if qqq15.get()!=0: textarea.insert(END,f'\n{qmah2.get()}\t\t{qqq15.get()}\t\tميروة') textarea.insert(END,"\n/.....................................") textarea.insert(END,f'\n\t{Alls.get()} \t المجموع الكتي') textarea.insert(END,"\n/.....................................") savex() #==== Customer Data  === F1 = Frame(root, bd=2 , width=338 , height=170 , bg="#0B4C5F") F1.place (x=961, y=35) tit = Label(F1, text="بيانات المشتري" , font=("Times New Roman",14,"bold") , bg="#0B4C5F" , fg="white") tit.place (x=185 , y=0) his_name=Label(F1, text=": اسم المشتري" , font=("Times New Roman",12,"bold") , bg="#0B4C5F" , fg="white") his_name.place (x=230 , y=40) his_phone=Label(F1, text=": رقم المشتري" , font=("Times New Roman",12,"bold") , bg="#0B4C5F" , fg="white") his_phone.place (x=230 , y=70) bill_num=Label(F1, text=": رقم الفاتورة " , font=("Times New Roman",12,"bold") , bg="#0B4C5F" , fg="white") bill_num.place (x=230 , y=100) Ent_name=Entry(F1, textvariable=nemo, justify="center") Ent_name.place (x=90 , y=42) Ent_phone=Entry(F1, textvariable=phono, justify="center") Ent_phone.place (x=90 , y=72) Ent_bill=Entry(F1, textvariable=fatora1, justify="center") Ent_bill.place (x=90 , y=102) #btn_customer=Button(F1, text=": بحث" , font=("Times New Roman",12,"bold") ,width=8 , height=2, bg="#DBA901" , fg="white") #btn_customer.place (x=5 , y=60) #==== Fatora1 : Bill ==== titdd = Label(F1, text="الفواتير" , font=("Times New Roman",14,"bold") , bg="#0B4C5F" , fg="white") titdd.place (x=125 , y=135) F3 = Frame(root, bd=2 ,width=338 , height=339 , bg="white") F3.place (x=961, y=205) scrol_y = Scrollbar(F3, orient = VERTICAL) textarea= Text(F3, yscrollcommand = scrol_y.set) scrol_y.pack(side = LEFT,fill = Y) scrol_y.config(command=textarea.yview) textarea.pack(fill=BOTH , expand=1) #==== Price ==== F4 = Frame(root, bd=2 , width=657 , height=112 , bg="#0B4C5F") F4.place (x=641, y=587) hesab=Button(F4, text=" الحساب" , font=("tajawal",10,"bold") ,width=11 , height=1 , bg="#DBA901" , fg="white", command = total) hesab.place (x=537 , y=10) fatora=Button(F4, text=" تصدير الفاتورة" , font=("tajawal",10,"bold") ,width=11 , height=1 , bg="#DBA901", fg="white", command=billing) fatora.place (x=537 , y=55) clear=Button(F4, text=" افراغ الحقول" , font=("tajawal",10,"bold") ,width=11 , height=1 , bg="#DBA901", fg="white" , command=clrx) clear.place (x=417 , y=10) exite=Button(F4, text="اغلاق البرنامج" , font=("tajawal",10,"bold") ,width=11 , height=1 , bg="#DBA901", fg="white" , command = root.destroy) exite.place (x=417 , y=55) lblo1=Label(F4, text=": حساب كلي للبقوليات" , font=("Times New Roman",12) , bg="#0B4C5F" , fg="white") lblo1.place (x=220 , y=10) lblo1=Label(F4, text=": حساب اللوازم المنزلية" , font=("Times New Roman",12) , bg="#0B4C5F" , fg="white") lblo1.place (x=220 , y=40) lblo1=Label(F4, text=": حساب ادوات الكهرباء" , font=("Times New Roman",12) , bg="#0B4C5F" , fg="white") lblo1.place (x=220 , y=70) ento1=Entry(F4, textvariable=bacoliat,width=24) ento1.place(x=40, y=12) ento2=Entry(F4, textvariable=adoat,width=24) ento2.place(x=40, y=42) ento3=Entry(F4, textvariable=kahraba,width=24) ento3.place(x=40, y=72) #================= items 1 ================ FF1 = Frame(root, bd=2 ,width=318 , height=655 , bg="#0B4C5F") FF1.place (x=1, y=35) t = Label(FF1, text="بقوليات" , font=("Times New Roman",14,"bold") , bg="#0B4C5F" , fg="white") t.place (x=120 , y=0) bq1=Label(FF1, text=": الرز" , font=("Times New Roman",12) , bg="#0B4C5F" , fg="white") bq1.place (x=215 , y=25) bq2=Label(FF1, text=": برغل" , font=("Times New Roman",12) , bg="#0B4C5F" , fg="white") bq2.place (x=215 , y=60) bq3=Label(FF1, text=": فاصوليا " , font=("Times New Roman",12) , bg="#0B4C5F" , fg="white") bq3.place (x=215 , y=95) bq4=Label(FF1, text=": عدس" , font=("Times New Roman",12) , bg="#0B4C5F" , fg="white") bq4.place (x=215 , y=130) bq5=Label(FF1, text=": معكرونة" , font=("Times New Roman",12) , bg="#0B4C5F" , fg="white") bq5.place (x=215 , y=165) bq6=Label(FF1, text=": فريكة" , font=("Times New Roman",12) , bg="#0B4C5F" , fg="white") bq6.place (x=215 , y=200) bq7=Label(FF1, text=": حمص" , font=("Times New Roman",12) , bg="#0B4C5F" , fg="white") bq7.place (x=215 , y=235) bq8=Label(FF1, text=": فول" , font=("Times New Roman",12) , bg="#0B4C5F" , fg="white") bq8.place (x=215 , y=270) bq9=Label(FF1, text=": الملح" , font=("Times New Roman",12) , bg="#0B4C5F" , fg="white") bq9.place (x=215 , y=300) bq10=Label(FF1, text=": سكر" , font=("Times New Roman",12) , bg="#0B4C5F" , fg="white") bq10.place (x=215 , y=335) bq11=Label(FF1, text=": فلفل احمر" , font=("Times New Roman",12) , bg="#0B4C5F" , fg="white") bq11.place (x=215 , y=370) bq12=Label(FF1, text=": فلفل اسود" , font=("Times New Roman",12) , bg="#0B4C5F" , fg="white") bq12.place (x=215 , y=405) bq13=Label(FF1, text=": اللوبيا" , font=("Times New Roman",12) , bg="#0B4C5F" , fg="white") bq13.place (x=215 , y=440) bq14=Label(FF1, text=": الادمامي" , font=("Times New Roman",12) , bg="#0B4C5F" , fg="white") bq14.place (x=215 , y=475) bq15=Label(FF1, text=": القمح" , font=("Times New Roman",12) , bg="#0B4C5F" , fg="white") bq15.place (x=215 , y=510) bq16=Label(FF1, text=":الشعير " , font=("Times New Roman",12) , bg="#0B4C5F" , fg="white") bq16.place (x=215 , y=545) bq17=Label(FF1, text=":الشوفان " , font=("Times New Roman",12) , bg="#0B4C5F" , fg="white") bq17.place (x=215 , y=580) bq18=Label(FF1, text=": الذرة" , font=("Times New Roman",12) , bg="#0B4C5F" , fg="white") bq18.place (x=215 , y=615) bqent1=Entry(FF1, textvariable=q1, width=12) bqent1.place(x=70, y=30) bqent2=Entry(FF1, textvariable=q2, width=12) bqent2.place(x=70, y=65) bqent3=Entry(FF1, textvariable=q3, width=12) bqent3.place(x=70, y=100) bqent4=Entry(FF1, textvariable=q4, width=12) bqent4.place(x=70, y=135) bqent5=Entry(FF1, textvariable=q5, width=12) bqent5.place(x=70, y=170) bqent6=Entry(FF1, textvariable=q6, width=12) bqent6.place(x=70, y=205) bqent7=Entry(FF1, textvariable=q7, width=12) bqent7.place(x=70, y=240) bqent8=Entry(FF1, textvariable=q8, width=12) bqent8.place(x=70, y=275) bqent9=Entry(FF1, textvariable=q9, width=12) bqent9.place(x=70, y=305) bqent10=Entry(FF1, textvariable=q10, width=12) bqent10.place(x=70, y=340) bqent11=Entry(FF1, textvariable=q11, width=12) bqent11.place(x=70, y=375) bqent12=Entry(FF1, textvariable=q12, width=12) bqent12.place(x=70, y=410) bqent13=Entry(FF1, textvariable=q13, width=12) bqent13.place(x=70, y=445) bqent14=Entry(FF1, textvariable=q14, width=12) bqent14.place(x=70, y=480) bqent15=Entry(FF1, textvariable=q15, width=12) bqent15.place(x=70, y=515) bqent16=Entry(FF1, textvariable=q16, width=12) bqent16.place(x=70, y=550) bqent17=Entry(FF1, textvariable=q17, width=12) bqent17.place(x=70, y=585) bqent18=Entry(FF1, textvariable=q18, width=12) bqent18.place(x=70, y=620) #=================== item 2 =============== FF2 = Frame(root, bd=2 , width=318 , height=655 , bg="#0B4C5F") FF2.place (x=321, y=35) ttt = Label(FF2, text="لوازم منزلية" , font=("Times New Roman",14,"bold") , bg="#0B4C5F" , fg="white") ttt.place (x=120 , y=0) bqr1=Label(FF2, text=": مصفاة" , font=("Times New Roman",12) , bg="#0B4C5F" , fg="white") bqr1.place (x=215 , y=30) bqr2=Label(FF2, text=": صحن" , font=("Times New Roman",12) , bg="#0B4C5F" , fg="white") bqr2.place (x=215 , y=60) bqr3=Label(FF2, text=": كاس" , font=("Times New Roman",12) , bg="#0B4C5F" , fg="white") bqr3.place (x=215 , y=95) bqr4=Label(FF2, text=": ابريق" , font=("Times New Roman",12) , bg="#0B4C5F" , fg="white") bqr4.place (x=215 , y=130) bqr5=Label(FF2, text=": سكين" , font=("Times New Roman",12) , bg="#0B4C5F" , fg="white") bqr5.place (x=215 , y=165) bqr6=Label(FF2, text=": شوك" , font=("Times New Roman",12) , bg="#0B4C5F" , fg="white") bqr6.place (x=215 , y=200) bqr7=Label(FF2, text=": طنجرة" , font=("Times New Roman",12) , bg="#0B4C5F" , fg="white") bqr7.place (x=215 , y=235) bqr8=Label(FF2, text=": سلة" , font=("Times New Roman",12) , bg="#0B4C5F" , fg="white") bqr8.place (x=215 , y=270) bqr9=Label(FF2, text=": ملاعق" , font=("Times New Roman",12) , bg="#0B4C5F" , fg="white") bqr9.place (x=215 , y=300) bqr10=Label(FF2, text=": صينية" , font=("Times New Roman",12) , bg="#0B4C5F" , fg="white") bqr10.place (x=215 , y=335) bqr11=Label(FF2, text=": وعاء الخلط" , font=("Times New Roman",12) , bg="#0B4C5F" , fg="white") bqr11.place (x=215 , y=370) bqr12=Label(FF2, text=": فتاحة العلب" , font=("Times New Roman",12) , bg="#0B4C5F" , fg="white") bqr12.place (x=215 , y=405) bqr13=Label(FF2, text=": مقشرة" , font=("Times New Roman",12) , bg="#0B4C5F" , fg="white") bqr13.place (x=215 , y=440) bqr14=Label(FF2, text=": لوح التقطيع" , font=("Times New Roman",12) , bg="#0B4C5F" , fg="white") bqr14.place (x=215 , y=475) bqr15=Label(FF2, text=": حفارة" , font=("Times New Roman",12) , bg="#0B4C5F" , fg="white") bqr15.place (x=215 , y=510) bqr16=Label(FF2, text=": سلة قمامة" , font=("Times New Roman",12) , bg="#0B4C5F" , fg="white") bqr16.place (x=215 , y=545) bqr17=Label(FF2, text=": منفضة" , font=("Times New Roman",12) , bg="#0B4C5F" , fg="white") bqr17.place (x=215 , y=580) bqr18=Label(FF2, text=": اكياس" , font=("Times New Roman",12) , bg="#0B4C5F" , fg="white") bqr18.place (x=215 , y=615) bqrnt1=Entry(FF2, textvariable=qq1, width=12) bqrnt1.place(x=70, y=30) bqrnt2=Entry(FF2, textvariable=qq2, width=12) bqrnt2.place(x=70, y=65) bqrnt3=Entry(FF2, textvariable=qq3, width=12) bqrnt3.place(x=70, y=100) bqrnt4=Entry(FF2, textvariable=qq4, width=12) bqrnt4.place(x=70, y=135) bqrnt5=Entry(FF2, textvariable=qq5, width=12) bqrnt5.place(x=70, y=170) bqrnt6=Entry(FF2, textvariable=qq6, width=12) bqrnt6.place(x=70, y=205) bqrnt7=Entry(FF2, textvariable=qq7, width=12) bqrnt7.place(x=70, y=240) bqrnt8=Entry(FF2, textvariable=qq8, width=12) bqrnt8.place(x=70, y=275) bqrnt9=Entry(FF2, textvariable=qq9, width=12) bqrnt9.place(x=70, y=305) bqrnt10=Entry(FF2, textvariable=qq10, width=12) bqrnt10.place(x=70, y=340) bqrnt11=Entry(FF2, textvariable=qq11, width=12) bqrnt11.place(x=70, y=375) bqrnt12=Entry(FF2, textvariable=qq12, width=12) bqrnt12.place(x=70, y=410) bqrnt13=Entry(FF2, textvariable=qq13, width=12) bqrnt13.place(x=70, y=445) bqrnt14=Entry(FF2, textvariable=qq14, width=12) bqrnt14.place(x=70, y=480) bqrnt15=Entry(FF2, textvariable=qq15, width=12) bqrnt15.place(x=70, y=515) bqrnt16=Entry(FF2, textvariable=qq16, width=12) bqrnt16.place(x=70, y=550) bqrnt17=Entry(FF2, textvariable=qq17, width=12) bqrnt17.place(x=70, y=585) bqrnt18=Entry(FF2, textvariable=qq18, width=12) bqrnt18.place(x=70, y=620) #================= items 3 ================ FF3 = Frame(root, bd=2 ,width=318 , height=550 , bg="#0B4C5F") FF3.place (x=641, y=35) ttt = Label(FF3, text="ادوات كهربائية" , font=("Times New Roman",14,"bold") , bg="#0B4C5F" , fg="white") ttt.place (x=120 , y=0) br1=Label(FF3, text=": مكنسة" , font=("Times New Roman",12) , bg="#0B4C5F" , fg="white") br1.place (x=215 , y=25) br2=Label(FF3, text=": تلفزيون" , font=("Times New Roman",12) , bg="#0B4C5F" , fg="white") br2.place (x=215 , y=60) br3=Label(FF3, text=": غسالة" , font=("Times New Roman",12) , bg="#0B4C5F" , fg="white") br3.place (x=215 , y=95) br4=Label(FF3, text=": مكرويف" , font=("Times New Roman",12) , bg="#0B4C5F" , fg="white") br4.place (x=215 , y=130) br5=Label(FF3, text=": خلاط" , font=("Times New Roman",12) , bg="#0B4C5F" , fg="white") br5.place (x=215 , y=165) br6=Label(FF3, text=": فرن غاز" , font=("Times New Roman",12) , bg="#0B4C5F" , fg="white") br6.place (x=215 , y=200) br7=Label(FF3, text=": مقلاة كهرباء" , font=("Times New Roman",12) , bg="#0B4C5F" , fg="white") br7.place (x=215 , y=235) br8=Label(FF3, text=": مروحة سقف" , font=("Times New Roman",12) , bg="#0B4C5F" , fg="white") br8.place (x=215 , y=270) br9=Label(FF3, text=": مروحة ارضية" , font=("Times New Roman",12) , bg="#0B4C5F" , fg="white") br9.place (x=215 , y=300) br10=Label(FF3, text=": تلفزيون 32" , font=("Times New Roman",12) , bg="#0B4C5F" , fg="white") br10.place (x=215 , y=335) br11=Label(FF3, text=": تلفزيون 43" , font=("Times New Roman",12) , bg="#0B4C5F" , fg="white") br11.place (x=215 , y=370) br12=Label(FF3, text=": فلتر ماء" , font=("Times New Roman",12) , bg="#0B4C5F" , fg="white") br12.place (x=215 , y=405) br13=Label(FF3, text=": غسالة اوتوماتيك" , font=("Times New Roman",12) , bg="#0B4C5F" , fg="white") br13.place (x=215 , y=440) br14=Label(FF3, text=": مكواة" , font=("Times New Roman",12) , bg="#0B4C5F" , fg="white") br14.place (x=215 , y=475) br15=Label(FF3, text=": ميروة" , font=("Times New Roman",12) , bg="#0B4C5F" , fg="white") br15.place (x=215 , y=510) bqrnt1=Entry(FF3, textvariable=qqq1, width=12) bqrnt1.place(x=70, y=30) bqrnt2=Entry(FF3, textvariable=qqq2, width=12) bqrnt2.place(x=70, y=65) bqrnt3=Entry(FF3, textvariable=qqq3, width=12) bqrnt3.place(x=70, y=100) bqrnt4=Entry(FF3, textvariable=qqq4, width=12) bqrnt4.place(x=70, y=135) bqrnt5=Entry(FF3, textvariable=qqq5, width=12) bqrnt5.place(x=70, y=170) bqrnt6=Entry(FF3, textvariable=qqq6, width=12) bqrnt6.place(x=70, y=205) bqrnt7=Entry(FF3, textvariable=qqq7, width=12) bqrnt7.place(x=70, y=240) bqrnt8=Entry(FF3, textvariable=qqq8, width=12) bqrnt8.place(x=70, y=275) bqrnt9=Entry(FF3, textvariable=qqq9, width=12) bqrnt9.place(x=70, y=305) bqrnt10=Entry(FF3, textvariable=qqq10, width=12) bqrnt10.place(x=70, y=340) bqrnt11=Entry(FF3, textvariable=qqq11, width=12) bqrnt11.place(x=70, y=375) bqrnt12=Entry(FF3, textvariable=qqq12, width=12) bqrnt12.place(x=70, y=410) bqrnt13=Entry(FF3, textvariable=qqq13, width=12) bqrnt13.place(x=70, y=445) bqrnt14=Entry(FF3, textvariable=qqq14, width=12) bqrnt14.place(x=70, y=480) bqrnt15=Entry(FF3, textvariable=qqq15, width=12) bqrnt15.place(x=70, y=515) welcome() root = Tk() #ob = Super(root) root.mainloop()