100-key Goto Github PK
Type: User
Type: User
Config files for my GitHub profile.
winroot.geometry('300x400') winroot.title('CITY AREAR') # ffr1 = Frame(winroot, width=40, height=10, bg='#000001') # ffr1.pack() # ffr1.place(x=80, y=5) pagelbl = Label(winroot, text='STATE NUMBER', fg='#000000', font=2) pagelbl.pack() pagelbl.place(x=80, y=5) # endat = Entry(ffr1, background='#ffffff', border=1,) # endat.pack() pagefrr = Frame(winroot, width=200, height=300) pagefrr.place(x=70, y=150) pagefrr.pack() Citydata =[ ("st 1", "arear1"), ("st 2", "arear2"), ("st 3", "arear3"), ("st 4", "arear4"), ("st 5", "arear5"), ] cittis = StringVar() cittis.set("st 1") def showcity(): # cityscreen = Label(pagefrr, text=text) # cityscreen.place(x=70, y=20) # cityscreen.pack() # cityscreen2 = Label(pagefrr, text=cittis) # cityscreen2.place(x=70, y=25) # cityscreen2.pack() for textt, cittyy in Citydata: citylbl = Label(pagefrr, text=textt) citylbl.place(x=70, y=50) citylbl.pack() citylbl2 = Label(pagefrr, text=cittyy) citylbl2.place(x=70, y=60) citylbl2.pack() # if cityscreen in citydata: # Label(winroot, text=citydata) # Label.place(x=70, y=80) # else: # Label(winroot, text='zero') citbutt = Button(winroot, text="المحطة", height=2, width=20, command=showcity) citbutt.place(x=70, y=10) citbutt.pack() mainloop()
from tkinter import * from tkinter import * import math, random , os from tkinter import messagebox class super: def __init__(self, compapp): self.compapp=compapp self.compapp.geometry('1400x800+5+5') self.compapp.title('MRKET STORE -شركــة ميجستور') self.compapp.iconbitmap() title= Label(self.compapp, text='MRKET STORE.ادارة', height=2, bg= 'grey', font=('Cadillac-Sans-Arabic-Medium', 20), fg= 'white') title.pack(fill=X) compapp.iconbitmap('D:\PYTHON#\images(3)-Copy.ico') # >>>> متغيرات الادخال self.name= StringVar() self.phon= StringVar() self.cash= StringVar() x = random.randint(1000,10000) self.cash.set(str(x)) #------ enter data ------- f1 = Frame(compapp, width=300, height=150, bg= "#005b58") f1.place(x=1100, y=70) tit1= Label(f1, text= ':بيانات الاسم', font= ('Cadillac-Sans-Arabic-Medium', 15), bg= '#005b58', fg= 'white') tit1.place(x=180 ,y=5) tit2= Label(f1, text= ':المشترى', font= ('Cadillac-Sans-Arabic-Medium', 12), bg= '#005b58', fg= 'white') tit2.place(x=210 ,y=30) tit3= Label(f1, text= ':الرقم', font= ('Cadillac-Sans-Arabic-Medium', 12), bg= '#005b58', fg= 'white') tit3.place(x=210 ,y=60) tit4= Label(f1, text= ':رقم الفاتورة', font= ('Cadillac-Sans-Arabic-Medium', 12), bg= '#005b58', fg= 'white') tit4.place(x=210 ,y=85) en1= Entry(f1, width= 20, bg= '#ffffff', justify=CENTER) en1.place(x=75 ,y=40) en2= Entry(f1, width= 20, bg= '#ffffff', justify=CENTER) en2.place(x=75 ,y=65) en3= Entry(f1, width= 20, textvariable=self.cash, bg= '#ffffff', justify=CENTER) en3.place(x=75 ,y=90) btfind= Button(f1, text='SEARCH', width=6, height=3, bg= '#ffffff', fg='#6d6d6d' ) btfind.place(x=10, y=50) tit5= Label(f1, text= '[الفـاتورة]', font= ('Cadillac-Sans-Arabic-Medium', 15), bg= '#005b58', fg= 'white') tit5.place(x=100 ,y=115) # ------ العرض ------- f2= Frame(compapp, width=300, height=500, bg= "#ebecec") f2.place(x=1100, y=220) scroll_r= Scrollbar(f2, orient=VERTICAL) self.textarea= Text(f2, yscrollcommand=scroll_r.set) scroll_r.pack(side=LEFT, fill=Y) scroll_r.config(command=self.textarea.yview) self.textarea.pack(fill=BOTH, expand=1) # ------بيانات------- # ------بيانات الكلى------- self.makolat= StringVar() self.mostalzmat= StringVar() self.compu= StringVar() # >>>>>>>> متغيرات ماكولات self.m1= IntVar() self.m2= IntVar() self.m3= IntVar() self.m4= IntVar() self.m5= IntVar() self.m6= IntVar() self.m7= IntVar() self.m8= IntVar() self.m9= IntVar() self.m10= IntVar() # >>>>>>>> متغيرات مستلزمات self.mm1= IntVar() self.mm2= IntVar() self.mm3= IntVar() self.mm4= IntVar() self.mm5= IntVar() self.mm6= IntVar() self.mm7= IntVar() self.mm8= IntVar() self.mm9= IntVar() self.mm10= IntVar() # >>>>>>>>>>> متغيرات كمبيوتر self.mmm1= IntVar() self.mmm2= IntVar() self.mmm3= IntVar() self.mmm4= IntVar() self.mmm5= IntVar() self.mmm6= IntVar() self.mmm7= IntVar() self.mmm8= IntVar() self.mmm9= IntVar() self.mmm10= IntVar() # -------------------- ff3= Frame(compapp, width=588, height=188, bg= '#005b58') ff3.place(x=810, y=620) order1= Button(ff3, text= 'كاش', width=8, bg='#ffffff', fg= 'black', font=('Cadillac-Sans-Arabic-Medium', 10)) order1.place(x=510, y=5) order2= Button(ff3, text= 'تفريغ البيان', width=8, bg='#ffffff', fg= 'black', font=('Cadillac-Sans-Arabic-Medium', 10)) order2.place(x=510, y=50) order3= Button(ff3, text= 'الفواتير', width=8, bg='#ffffff', fg= 'black', font=('Cadillac-Sans-Arabic-Medium', 10)) order3.place(x=420, y=5) order4= Button(ff3, text= 'خروج', width=8, bg='#ffffff', fg= 'black', font=('Cadillac-Sans-Arabic-Medium', 10)) order4.place(x=420, y=50) lbnum1= Label(ff3, text='حساب ماكولات', bg= '#005b58', fg='#ffffff', font=('Cadillac-Sans-Arabic-Medium', 15)) lbnum1.place(x=225,y=5) lbnum1= Label(ff3, text='حساب المستلزمات', bg= '#005b58', fg='#ffffff', font=('Cadillac-Sans-Arabic-Medium', 15)) lbnum1.place(x=225,y=40) lbnum1= Label(ff3, text='كمبـيـوتر', bg= '#005b58', fg='#ffffff', font=('Cadillac-Sans-Arabic-Medium', 15)) lbnum1.place(x=225,y=80) etnum1= Entry(ff3, textvariable=self.makolat, width=20, justify=CENTER) etnum1.place(x=85, y=10) etnum2= Entry(ff3, textvariable=self.mostalzmat, width=20, justify=CENTER) etnum2.place(x=85, y=50) etnum3= Entry(ff3, textvariable=self.compu, width=20, justify=CENTER) etnum3.place(x=85, y=85) # ----all MENU---------------------- # ----MENU1------ ff4= Frame(compapp, width=400, height=750, bg= '#005b58') ff4.place(x=1, y=70) lbmenu1= Label(ff4, text='ماكولات', bg= '#005b58', fg='#ffffff', font=('Cadillac-Sans-Arabic-Medium', 15)) lbmenu1.place(x=150, y=5) me1b= Button(ff4, text='order1', width=10, bg= '#005b58', fg='#ffffff', font=('Cadillac-Sans-Arabic-Medium', 10)) me1b.place(x=295, y=50) me1et= Entry(ff4, textvariable=self.m1, width=20) me1et.place(x=160, y=55) me1b2= Button(ff4, text='order2', width=10, bg= '#005b58', fg='#ffffff', font=('Cadillac-Sans-Arabic-Medium', 10)) me1b2.place(x=295, y=90) me1et2= Entry(ff4, textvariable=self.m2, width=20) me1et2.place(x=160, y=95) me1b3= Button(ff4, text='order3', width=10, bg= '#005b58', fg='#ffffff', font=('Cadillac-Sans-Arabic-Medium', 10)) me1b3.place(x=295, y=130) me1et3= Entry(ff4, textvariable=self.m3, width=20) me1et3.place(x=160, y=135) me1b4= Button(ff4, text='order4', width=10, bg= '#005b58', fg='#ffffff', font=('Cadillac-Sans-Arabic-Medium', 10)) me1b4.place(x=295, y=170) me1et4= Entry(ff4, textvariable=self.m4, width=20) me1et4.place(x=160, y=175) me1b5= Button(ff4, text='order5', width=10, bg= '#005b58', fg='#ffffff', font=('Cadillac-Sans-Arabic-Medium', 10)) me1b5.place(x=295, y=210) me1et5= Entry(ff4, textvariable=self.m5, width=20) me1et5.place(x=160, y=215) me1b6= Button(ff4, text='order6', width=10, bg= '#005b58', fg='#ffffff', font=('Cadillac-Sans-Arabic-Medium', 10)) me1b6.place(x=295, y=250) me1et6= Entry(ff4, textvariable=self.m6, width=20) me1et6.place(x=160, y=255) me1b7= Button(ff4, text='order7', width=10, bg= '#005b58', fg='#ffffff', font=('Cadillac-Sans-Arabic-Medium', 10)) me1b7.place(x=295, y=290) me1et7= Entry(ff4, textvariable=self.m7, width=20) me1et7.place(x=160, y=295) me1b8= Button(ff4, text='order8', width=10, bg= '#005b58', fg='#ffffff', font=('Cadillac-Sans-Arabic-Medium', 10)) me1b8.place(x=295, y=330) me1et8= Entry(ff4, textvariable=self.m8, width=20) me1et8.place(x=160, y=335) me1b9= Button(ff4, text='order9', width=10, bg= '#005b58', fg='#ffffff', font=('Cadillac-Sans-Arabic-Medium', 10)) me1b9.place(x=295, y=370) me1et9= Entry(ff4, textvariable=self.m9, width=20) me1et9.place(x=160, y=375) me1b10= Button(ff4, text='order10', width=10, bg= '#005b58', fg='#ffffff', font=('Cadillac-Sans-Arabic-Medium', 10)) me1b10.place(x=295, y=410) me1et10= Entry(ff4, textvariable=self.m10, width=20) me1et10.place(x=160, y=415) # ----MENU2------ ff5= Frame(compapp, width=400, height=750, bg= '#005b58') ff5.place(x=405, y=70) lbmenu2= Label(ff5, text='مستلزمات', bg= '#005b58', fg='#ffffff', font=('Cadillac-Sans-Arabic-Medium', 15)) lbmenu2.place(x=150, y=5) me2b= Button(ff5, text='order1', width=10, bg= '#005b58', fg='#ffffff', font=('Cadillac-Sans-Arabic-Medium', 10)) me2b.place(x=295, y=50) me2et= Entry(ff5, textvariable=self.mm1, width=20) me2et.place(x=160, y=55) me2b2= Button(ff5, text='order2', width=10, bg= '#005b58', fg='#ffffff', font=('Cadillac-Sans-Arabic-Medium', 10)) me2b2.place(x=295, y=90) me2et2= Entry(ff5, textvariable=self.mm2, width=20) me2et2.place(x=160, y=95) me2b3= Button(ff5, text='order3', width=10, bg= '#005b58', fg='#ffffff', font=('Cadillac-Sans-Arabic-Medium', 10)) me2b3.place(x=295, y=130) me2et3= Entry(ff5, textvariable=self.mm3, width=20) me2et3.place(x=160, y=135) me2b4= Button(ff5, text='order4', width=10, bg= '#005b58', fg='#ffffff', font=('Cadillac-Sans-Arabic-Medium', 10)) me2b4.place(x=295, y=170) me2et4= Entry(ff5, textvariable=self.mm4, width=20) me2et4.place(x=160, y=175) me2b5= Button(ff5, text='order5', width=10, bg= '#005b58', fg='#ffffff', font=('Cadillac-Sans-Arabic-Medium', 10)) me2b5.place(x=295, y=210) me2et5= Entry(ff5, textvariable=self.mm5, width=20) me2et5.place(x=160, y=215) me2b6= Button(ff5, text='order6', width=10, bg= '#005b58', fg='#ffffff', font=('Cadillac-Sans-Arabic-Medium', 10)) me2b6.place(x=295, y=250) me2et6= Entry(ff5, textvariable=self.mm6, width=20) me2et6.place(x=160, y=255) me2b7= Button(ff5, text='order7', width=10, bg= '#005b58', fg='#ffffff', font=('Cadillac-Sans-Arabic-Medium', 10)) me2b7.place(x=295, y=290) me2et7= Entry(ff5, textvariable=self.mm7, width=20) me2et7.place(x=160, y=295) me2b8= Button(ff5, text='order8', width=10, bg= '#005b58', fg='#ffffff', font=('Cadillac-Sans-Arabic-Medium', 10)) me2b8.place(x=295, y=330) me2et8= Entry(ff5, textvariable=self.mm8, width=20) me2et8.place(x=160, y=335) me2b9= Button(ff5, text='order9', width=10, bg= '#005b58', fg='#ffffff', font=('Cadillac-Sans-Arabic-Medium', 10)) me2b9.place(x=295, y=370) me2et9= Entry(ff5, textvariable=self.mm9, width=20) me2et9.place(x=160, y=375) me2b10= Button(ff5, text='order10', width=10, bg= '#005b58', fg='#ffffff', font=('Cadillac-Sans-Arabic-Medium', 10)) me2b10.place(x=295, y=410) me2et10= Entry(ff5, textvariable=self.mm10, width=20) me2et10.place(x=160, y=415) # ----MENU3------ ff6= Frame(compapp, width=285, height=545, bg= '#005b58') ff6.place(x=810, y=70) lbmenu2= Label(ff6, text='computer', bg= '#005b58', fg='#ffffff', font=('Cadillac-Sans-Arabic-Medium', 15)) lbmenu2.place(x=110, y=5) me3b= Button(ff6, text='order1', width=10, bg= '#005b58', fg='#ffffff', font=('Cadillac-Sans-Arabic-Medium', 10)) me3b.place(x=190, y=50) me3et= Entry(ff6, textvariable=self.mmm1, width=20) me3et.place(x=55, y=55) me3b2= Button(ff6, text='order2', width=10, bg= '#005b58', fg='#ffffff', font=('Cadillac-Sans-Arabic-Medium', 10)) me3b2.place(x=190, y=90) me3et2= Entry(ff6, textvariable=self.mmm2, width=20) me3et2.place(x=55, y=95) me3b3= Button(ff6, text='order3', width=10, bg= '#005b58', fg='#ffffff', font=('Cadillac-Sans-Arabic-Medium', 10)) me3b3.place(x=190, y=130) me3et3= Entry(ff6, textvariable=self.mmm3, width=20) me3et3.place(x=55, y=135) me3b4= Button(ff6, text='order4', width=10, bg= '#005b58', fg='#ffffff', font=('Cadillac-Sans-Arabic-Medium', 10)) me3b4.place(x=190, y=170) me3et4= Entry(ff6, textvariable=self.mmm4, width=20) me3et4.place(x=55, y=175) me3b5= Button(ff6, text='order5', width=10, bg= '#005b58', fg='#ffffff', font=('Cadillac-Sans-Arabic-Medium', 10)) me3b5.place(x=190, y=210) me3et5= Entry(ff6, textvariable=self.mmm5, width=20) me3et5.place(x=55, y=215) me3b6= Button(ff6, text='order6', width=10, bg= '#005b58', fg='#ffffff', font=('Cadillac-Sans-Arabic-Medium', 10)) me3b6.place(x=190, y=250) me3et6= Entry(ff6, textvariable=self.mmm6, width=20) me3et6.place(x=55, y=255) me3b7= Button(ff6, text='order7', width=10, bg= '#005b58', fg='#ffffff', font=('Cadillac-Sans-Arabic-Medium', 10)) me3b7.place(x=190, y=290) me3et7= Entry(ff6, textvariable=self.mmm7, width=20) me3et7.place(x=55, y=295) me3b8= Button(ff6, text='order8', width=10, bg= '#005b58', fg='#ffffff', font=('Cadillac-Sans-Arabic-Medium', 10)) me3b8.place(x=190, y=330) me3et8= Entry(ff6, textvariable=self.mmm8, width=20) me3et8.place(x=55, y=335) me3b9= Button(ff6, text='order9', width=10, bg= '#005b58', fg='#ffffff', font=('Cadillac-Sans-Arabic-Medium', 10)) me3b9.place(x=190, y=370) me3et9= Entry(ff6, textvariable=self.mmm9, width=20) me3et9.place(x=55, y=375) me3b10= Button(ff6, text='order10', width=10, bg= '#005b58', fg='#ffffff', font=('Cadillac-Sans-Arabic-Medium', 10)) me3b10.place(x=190, y=410) me3et10= Entry(ff6, textvariable=self.mmm10, width=20) me3et10.place(x=55, y=415) self.wellcm() def wellcm(self): self.textarea.delete('1.0', END) self.textarea.insert(END, "\t سوق الماركت يرحب بكم") self.textarea.insert(END, "\n<><><><><><><><><><><><><><><><><><><>") self.textarea.insert(END, f"\npe.num: {self.phon.get()}") self.textarea.insert(END, f"\npe.name: {self.name.get()}") self.textarea.insert(END, f"\ncash: {self.cash.get()}\t") self.textarea.insert(END, "\n<><><><><><><><><><><><><><><><><><><>") self.textarea.insert(END, f" \nالمشتريات\t عدد\t الاجمالى \n") self.textarea.insert(END, "\n<><><><><><><><><><><><><><><><><><><>\t") compapp = Tk() oos = super(compapp) compapp.mainloop()
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.