Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #modules
- import sqlite3
- import autopy
- import kivy
- kivy.require("1.9.0")
- from kivy.properties import NumericProperty
- from kivy.app import App
- from kivy.uix.widget import Widget
- from kivy.properties import ObjectProperty
- from kivy.core.window import Window
- from kivy.properties import StringProperty
- import smtplib
- from email.mime.multipart import MIMEMultipart
- from email.mime.text import MIMEText
- Window.clearcolor = (0, 0, 0.5, 1)#SET COLOR
- import winsound
- import smtplib
- import webbrowser
- import random
- import matplotlib.pyplot as plt
- class CustomWidget(Widget):
- #login_inputs
- password_text_input=ObjectProperty()
- user_text_input=ObjectProperty()
- #registration inputs
- firstnaminp_text_input=ObjectProperty()
- lastnameinp_text_input=ObjectProperty()
- emailinp_text_input=ObjectProperty()
- passwordinp_text_input=ObjectProperty()
- countryinp_text_input=ObjectProperty()
- cityinp_text_input=ObjectProperty()
- addressinp_text_input=ObjectProperty()
- postcodeinp_text_input=ObjectProperty()
- #settings inputs :
- chname_text_input=ObjectProperty()
- chlstname_text_input=ObjectProperty()
- chemail_text_input=ObjectProperty()
- chpassword_text_input=ObjectProperty()
- chcountry_text_input=ObjectProperty()
- chcity_text_input=ObjectProperty()
- chaddress_text_input=ObjectProperty()
- chpostal_text_input=ObjectProperty()
- #contact
- emailinput_text_input=ObjectProperty()
- subjectinput_text_input=ObjectProperty()
- messageinput_text_input=ObjectProperty()
- #shop ammounts:
- product1am_text_input=ObjectProperty()
- product2am_text_input=ObjectProperty()
- product3am_text_input=ObjectProperty()
- #labels(registry)
- firstnaminp=""
- lastnameinp=""
- emailinp=""
- passwordinp=""
- countryinp=""
- cityinp=""
- addressinp=""
- postcodeinp=""
- chname=""
- #labels(lgoin)
- password=""
- user=""
- def remove_rgstr(self):#removes about us
- self.ids.infoimg.pos=10000,1000
- self.ids.infohead.pos=10000,1000
- self.ids.infolab.pos=10000,10000
- def update_user_name(self):#--------------------------------change some frsnp--------------------------#
- conn = sqlite3.connect('accounts.db')
- c = conn.cursor()
- password=self.password_text_input.text
- user=self.user_text_input.text
- newfirstname=self.chname_text_input.text
- print user
- print password
- print newfirstname
- if (len(newfirstname)<5):
- autopy.alert.alert("Your first name should be over 5 characters")
- else:
- try:
- c.execute("UPDATE accounts SET firstname = (?) WHERE email= (?) AND password = (?) ",(newfirstname, user, password))
- conn.commit()
- autopy.alert.alert("Your new name saved succesfully")
- self.ids.chname.text=""
- except:
- autopy.alert.alert("Something wrong happened")
- def update_user_lstname(self):#--------------------------------change some lstnm--------------------------#
- conn = sqlite3.connect('accounts.db')
- c = conn.cursor()
- password=self.password_text_input.text
- user=self.user_text_input.text
- newlastname=self.chlstname_text_input.text
- print user
- print password
- print newlastname
- if (len(newlastname)<5):
- autopy.alert.alert("Your last name should be over 5 characters")
- else:
- try:
- c.execute("UPDATE accounts SET lastname = (?) WHERE email= (?) AND password = (?) ",(newlastname, user, password))
- conn.commit()
- autopy.alert.alert("Your new lastname saved succesfully")
- self.ids.chlstname.text=""
- except:
- autopy.alert.alert("Something wrong happened")
- def update_user_email(self):#--------------------------------change some email--------------------------#
- conn = sqlite3.connect('accounts.db')
- c = conn.cursor()
- password=self.password_text_input.text
- user=self.user_text_input.text
- newemail=self.chemail_text_input.text
- print user
- print password
- print newemail
- if (len(newemail)<5):
- autopy.alert.alert("Your email should be over 5 characters")
- else:
- try:
- conn = sqlite3.connect('accounts.db')
- c = conn.cursor()
- c.execute("SELECT * FROM accounts WHERE email= ?",(newemail,))
- if c.fetchone() is not None :
- autopy.alert.alert("This email is used !")
- autopy.alert.alert("Try again! !")
- else:
- msg="This email is just to verify that this mail works !"
- mail=smtplib.SMTP('smtp.gmail.com',587)
- mail.ehlo()
- mail.starttls()
- mail.login("kostas2372@gmail.com","myllwcutinlyswpw")
- mail.sendmail("kostas2372@gmail.com",newemail,msg)
- mail.sendmail("kostas2372@gmail.com",user,"Your email has been changed ,if you didn't do that send us an email now in kostas2372@gmail.com")
- c.execute("UPDATE accounts SET email = (?) WHERE email= (?) AND password = (?) ",(newemail, user, password))
- conn.commit()
- autopy.alert.alert("Your new email saved succesfully")
- self.ids.chemail.text=""
- except:
- autopy.alert.alert("Your email does not works!")
- def update_user_password(self):#--------------------------------change some password--------------------------#
- conn = sqlite3.connect('accounts.db')
- c = conn.cursor()
- password=self.password_text_input.text
- user=self.user_text_input.text
- newpassword=self.chpassword_text_input.text
- print user
- print password
- print newpassword
- if (len(newpassword)<5):
- autopy.alert.alert("Your password should be over 5 characters")
- else:
- try:
- msg=newpassword
- password=self.password_text_input.text
- user=self.user_text_input.text
- newemail=self.user_text_input.text
- mail=smtplib.SMTP('smtp.gmail.com',587)
- mail.ehlo()
- mail.starttls()
- mail.login("kostas2372@gmail.com","myllwcutinlyswpw")
- mail.sendmail("kostas2372@gmail.com",newemail,"Your new password will be sent in some minutes !!!")
- mail.sendmail("kostas2372@gmail.com",newemail,msg)
- c.execute("UPDATE accounts SET password = (?) WHERE email= (?) AND password = (?) ",(newpassword, user, password))
- conn.commit()
- autopy.alert.alert("Your new password saved succesfully")
- self.ids.chpassword.text=""
- except:
- autopy.alert.alert("Something wrong happened")
- def update_user_country(self):#--------------------------------change some country--------------------------#
- conn = sqlite3.connect('accounts.db')
- c = conn.cursor()
- password=self.password_text_input.text
- user=self.user_text_input.text
- newcountry=self.chcountry_text_input.text
- print user
- print password
- print newcountry
- if (len(newcountry)<5):
- autopy.alert.alert("Your country should be over 5 characters")
- else:
- try:
- c.execute("UPDATE accounts SET country = (?) WHERE email= (?) AND password = (?) ",(newcountry, user, password))
- conn.commit()
- autopy.alert.alert("Your new country saved succesfully")
- self.ids.chcountry.text=""
- except:
- autopy.alert.alert("Something wrong happened")
- def update_user_city(self):#--------------------------------change some city--------------------------#
- conn = sqlite3.connect('accounts.db')
- c = conn.cursor()
- password=self.password_text_input.text
- user=self.user_text_input.text
- newcity=self.chcity_text_input.text
- print user
- print password
- print newcity
- if (len(newcity)<5):
- autopy.alert.alert("Your city should be over 5 characters")
- else:
- try:
- c.execute("UPDATE accounts SET city = (?) WHERE email= (?) AND password = (?) ",(newcity, user, password))
- conn.commit()
- autopy.alert.alert("Your new city saved succesfully")
- self.ids.chcity.text=""
- except:
- autopy.alert.alert("Something wrong happened")
- def update_user_address(self):#--------------------------------change some address--------------------------#
- conn = sqlite3.connect('accounts.db')
- c = conn.cursor()
- password=self.password_text_input.text
- user=self.user_text_input.text
- newaddress=self.chaddress_text_input.text
- print user
- print password
- print newaddress
- if (len(newaddress)<5):
- autopy.alert.alert("Your address should be over 5 characters")
- else:
- try:
- c.execute("UPDATE accounts SET address = (?) WHERE email= (?) AND password = (?) ",(newaddress, user, password))
- conn.commit()
- autopy.alert.alert("Your new address saved succesfully")
- self.ids.chaddress.text=""
- except:
- autopy.alert.alert("Something wrong happened")
- def update_user_postal(self):#--------------------------------change some postal--------------------------#
- conn = sqlite3.connect('accounts.db')
- c = conn.cursor()
- password=self.password_text_input.text
- user=self.user_text_input.text
- newpostal=self.chpostal_text_input.text
- print user
- print password
- print newpostal
- if (len(newpostal)<=4):
- autopy.alert.alert("Your postal should be 5 characters")
- else:
- try:
- c.execute("UPDATE accounts SET postcode = (?) WHERE email= (?) AND password = (?) ",(newpostal, user, password))
- conn.commit()
- autopy.alert.alert("Your new postal saved succesfully")
- self.ids.chpostal.text=""
- except:
- autopy.alert.alert("Something wrong happened")
- def delete_my_acc_vrf(self):
- self.removecontact()
- self.remove_settings()
- self.ids.verification_del.pos=900,600
- self.ids.verification_yes.pos=720,550
- self.ids.verification_no.pos=1020,550
- def delete_my_acc_yes(self):
- self.removecontact()
- try:
- passworddel=self.password_text_input.text
- userdel=self.user_text_input.text
- print userdel
- conn = sqlite3.connect('accounts.db')
- c = conn.cursor()
- print passworddel
- c.execute("DELETE FROM accounts WHERE email = ?",(userdel,))
- autopy.alert.alert("Your account deleted !")
- conn.commit()
- self.remove_dels()
- self.ret()
- except:
- autopy.alert.alert("Something wrong happened")
- def delete_my_acc_no(self):
- self.settings()
- self.remove_dels()
- def remove_dels(self):
- self.ids.verification_del.pos=90000,60000
- self.ids.verification_yes.pos=72000,55000
- self.ids.verification_no.pos=10020,55000
- def settings(self):#---------------------------------settings----------------------------------
- self.rembuy()
- self.rempb()
- self.removecontact()
- self.remove_dels()
- self.remove_rgstr()
- winsound.Beep(50,50)
- self.ids.chname.pos=900,650
- self.ids.chnamebtn.pos=1100,650
- self.ids.chfrstnmlbl.pos=700,620
- #lastname
- self.ids.chlstname.pos=900,600
- self.ids.chlstnamebtn.pos=1100,600
- self.ids.chlstsnmlbl.pos=700,570
- #email
- self.ids.chemail.pos=900,550
- self.ids.chemailbtn.pos=1100,550
- self.ids.chemaillbl.pos=700,520
- #password
- self.ids.chpassword.pos=900,500
- self.ids.chpasswordbtn.pos=1100,500
- self.ids.chpasswordlbl.pos=700,470
- #country
- self.ids.chcountry.pos=900,450
- self.ids.chcountrybtn.pos=1100,450
- self.ids.chcountrylbl.pos=700,420
- #city
- self.ids.chcity.pos=900,400
- self.ids.chcitybtn.pos=1100,400
- self.ids.chcitylbl.pos=700,370
- #address
- self.ids.chaddress.pos=900,350
- self.ids.chaddressbtn.pos=1100,350
- self.ids.chaddresslbl.pos=700,320
- #postal
- self.ids.chpostal.pos=900,300
- self.ids.chpostalbtn.pos=1100,300
- self.ids.chpostallbl.pos=700,270
- #delete
- self.ids.delv.pos=810,250
- def remove_settings (self):
- self.ids.chname.pos=9000,6500
- self.ids.chnamebtn.pos=11000,6500
- self.ids.chfrstnmlbl.pos=7000,6200
- #lastname
- self.ids.chlstname.pos=9000,6000
- self.ids.chlstnamebtn.pos=11000,6000
- self.ids.chlstsnmlbl.pos=7000,5700
- #email
- self.ids.chemail.pos=9000,55000
- self.ids.chemailbtn.pos=11000,55000
- self.ids.chemaillbl.pos=70000,52000
- #password
- self.ids.chpassword.pos=9000,5000
- self.ids.chpasswordbtn.pos=11000,50000
- self.ids.chpasswordlbl.pos=70000,47000
- #password
- self.ids.chcountry.pos=90000,45000
- self.ids.chcountrybtn.pos=11000,45000
- self.ids.chcountrylbl.pos=70000,42000
- #city
- self.ids.chcity.pos=90000,40000
- self.ids.chcitybtn.pos=11000,40000
- self.ids.chcitylbl.pos=70000,370000
- #address
- self.ids.chaddress.pos=90000,35000
- self.ids.chaddressbtn.pos=11000,35000
- self.ids.chaddresslbl.pos=700,32000
- #postal
- self.ids.chpostal.pos=90000,30000
- self.ids.chpostalbtn.pos=11000,30000
- self.ids.chpostallbl.pos=70000,27000
- self.ids.delv.pos=11000,25000
- def remove_logn(self):#afairei to logn
- self.remove_dels()
- self.ids.password.pos=9999,9999
- self.ids.passlab.pos=9999,9999
- self.ids.user.pos=9999,9999
- self.ids.userlab.pos=9999,9999
- self.ids.registera.pos=9999,9999
- self.ids.login.pos=9999,9999
- self.ids.aply.pos=9999,9999
- self.ids.hidepassword.pos=15555,15555
- self.ids.showpassword.pos=15555,15555
- def user(self):#------------------------------------------user-------------------------------------------------------
- self.remove_logn()
- autopy.alert.alert("User logined")
- self.ids.peas.pos=30,900
- self.ids.infobtn.pos=245,900
- self.ids.set.pos=400,900
- self.ids.contactmainbtn.pos=615,900
- self.ids.shop.pos=770,900
- def admin(self):#------------------------------------------------admin------------------------------------------------
- autopy.alert.alert("Admin logined")
- self.remove_settings()
- self.remove_logn()
- self.ids.peas.pos=30,900
- self.ids.password.pos=9999,9999
- self.ids.passlab.pos=9999,9999
- self.ids.user.pos=9999,9999
- self.ids.userlab.pos=9999,9999
- self.ids.registera.pos=9999,9999
- self.ids.login.pos=9999,9999
- self.ids.aply.pos=9999,9999
- self.ids.infobtn.pos=245,900
- def peos(self):#test
- print 10
- def ret(self):#__________________________________________________relogin________________________________________________
- self.rembuy()
- self.rempb()
- self.removecontact()
- self.remove_dels()
- winsound.Beep(300,300)
- self.ids.user.text=""
- self.ids.password.text=""
- self.ids.shop.pos=700700,90000
- self.ids.chname.text=""
- self.ids.chlstname.text=""
- self.ids.chemail.text=""
- self.ids.chpassword.text=""
- self.ids.chcountry.text=""
- self.ids.product1am.text=""
- self.ids.product2am.text=""
- self.ids.product3am.text=""
- self.ids.login.pos=900,500
- self.ids.registera.pos=1000,500
- self.ids.infobtn.pos=10000,10000
- self.ids.contactmainbtn.pos=61005,90000
- self.login()
- self.remove_rgstr()
- self.remove_settings()
- def login(self):#------------------------------------------------login---------------------------------------------------------
- self.removecontact()
- self.remove_dels()
- self.remove_settings()
- self.peos()#removes all registery labels and texts
- self.ids.set.pos=100000,10000
- self.ids.showpassword.pos=1240,540
- self.ids.peas.pos=9999,9999
- self.ids.firstnaminp.pos=9999,9999
- self.ids.lastnameinp.pos=9999,9999
- self.ids.emailinp.pos=9999,9999
- self.ids.passwordinp.pos=9999,9999
- self.ids.countryinp.pos=9999,9999
- self.ids.cityinp.pos=9999,9999
- self.ids.addressinp.pos=9999,9999
- self.ids.postcodeinp.pos=9999,9999
- self.ids.password.pos=990,540
- self.ids.passlab.pos=860,510
- self.ids.user.pos=990,590
- self.ids.userlab.pos=860,563
- self.ids.aply.pos=9999,9999
- self.ids.firstnamlab.pos=9999,9999
- self.ids.lastnamelab.pos=9999,9999
- self.ids.emaillab.pos=9999,9999
- self.ids.passwordlab.pos=9999,9999
- self.ids.countrylab.pos=9999,9999
- self.ids.citylab.pos=9999,9999
- self.ids.addresslab.pos=9999,9999
- self.ids.postcodelab.pos=9999,9999
- password_text_input=ObjectProperty()#--------------------------------------lgn_txt_Nnp
- user_text_input=ObjectProperty()
- password=""
- user=""
- try:
- password=self.password_text_input.text
- user=self.user_text_input.text
- passlen=len(password)
- userlen=len(user)
- conn = sqlite3.connect('accounts.db')
- c = conn.cursor()
- c.execute("SELECT * FROM accounts WHERE email= ? AND password= ? ",(user,password))#-----------------------------------------connection and login in database-----------------------
- fes=c.execute("SELECT * FROM accounts WHERE email= ? AND password= ? ",(user,password))#nothing special
- if(userlen==0 and passlen==0):#if someone do not write anything in user and psw inputs
- autopy.alert.alert("No username and no password input")
- elif c.fetchone() is not None:#connection
- winsound.Beep(300,300)
- self.user()
- else:
- if (password=="admin" and user=="admin"):#--admin--#
- winsound.Beep(300,300)
- self.admin()
- elif(userlen==0 and passlen==0):#pithanotites
- autopy.alert.alert("No username and no password input")
- elif (userlen==0):
- autopy.alert.alert("No username input")
- elif (passlen==0):
- autopy.alert.alert("No password input")
- elif (userlen!=0 and passlen!=0):
- autopy.alert.alert("Wrong password or wrong username")
- else:
- autopy.alert.alert("A bug occured")
- except:
- print "aek"
- def register(self):
- self.rempb()
- self.remove_dels()
- self.remove_settings()
- self.remove_logn()
- self.ids.password.pos=9999,9999
- self.ids.passlab.pos=9999,9999
- self.ids.user.pos=9999,9999
- self.ids.userlab.pos=9999,9999
- self.ids.login.pos=895,400
- self.ids.registera.pos=1000,400
- self.ids.aply.pos=1000,500
- #xxx
- self.ids.firstnamlab.pos=800,725
- self.ids.lastnamelab.pos=800,695
- self.ids.emaillab.pos=800,670
- self.ids.passwordlab.pos=800,650
- self.ids.countrylab.pos=800,630
- self.ids.citylab.pos=800,610
- self.ids.addresslab.pos=800,590
- self.ids.postcodelab.pos=800,570
- #yyy
- self.ids.firstnaminp.pos=930,755
- self.ids.lastnameinp.pos=930,710.9
- self.ids.emailinp.pos=930,735
- self.ids.passwordinp.pos=930,691.5
- self.ids.countryinp.pos=930,670
- self.ids.cityinp.pos=930,650
- self.ids.addressinp.pos=930,627
- self.ids.postcodeinp.pos=930,600
- winsound.Beep(300,300)
- def aply(self):
- self.remove_dels()
- firstnaminp=self.firstnaminp_text_input.text
- lastnameinp=self.emailinp_text_input.text
- emailinp=self.lastnameinp_text_input.text
- passwordinp=self.passwordinp_text_input.text
- countryinp=self.countryinp_text_input.text
- cityinp=self.cityinp_text_input.text
- addressinp=self.addressinp_text_input.text
- postcodeinp=self.postcodeinp_text_input.text
- pos=str("user")
- conn = sqlite3.connect('accounts.db')
- c = conn.cursor()
- c.execute("CREATE TABLE IF NOT EXISTS accounts(firstname TEXT, lastname TEXT, email TEXT, password TEXT, country TEXT, city TEXT, address TEXT, postcode TEXT)")
- c.execute("SELECT * FROM accounts WHERE email= ?",(emailinp,))
- winsound.Beep(300,300)
- firstnameinplen=len(firstnaminp)
- lastnameinplen=len(lastnameinp)
- emailinplen=len(emailinp)
- passwordinplen=len(passwordinp)
- countryinplen=len(countryinp)
- cityinplen=len(cityinp)
- addressinplen=len(addressinp)
- postcodeinplen=len(postcodeinp)
- if(firstnameinplen<=5 or lastnameinplen <= 5 or emailinplen <= 5 or passwordinplen<=5 or countryinplen <=5 or cityinplen <= 5 or addressinplen <= 5 or postcodeinplen <=5):
- autopy.alert.alert("You have to answer all the questions with at least 5 characters !")
- elif c.fetchone() is not None:
- self.ids.lastnameinp.text=""
- autopy.alert.alert("Email is used")
- else:
- try:
- msg="This email is just to verify that this mail works !"
- mail=smtplib.SMTP('smtp.gmail.com',587)
- mail.ehlo()
- mail.starttls()
- mail.login("kostas2372@gmail.com","myllwcutinlyswpw")
- mail.sendmail("kostas2372@gmail.com",emailinp,msg)
- c.execute("INSERT INTO accounts (firstname, lastname, email, password, country, city, address, postcode) VALUES (?, ?, ?, ?, ?, ?, ?, ?)",
- (firstnaminp, lastnameinp , emailinp , passwordinp, countryinp, cityinp, addressinp, postcodeinp,))
- conn.commit()
- autopy.alert.alert("You are in our database ! you can login in our program !")
- self.login()
- self.ids.firstnaminp.text=""
- self.ids.lastnameinp.text=""
- self.ids.emailinp.text=""
- self.ids.passwordinp.text=""
- self.ids.countryinp.text=""
- self.ids.cityinp.text=""
- self.ids.addressinp.text=""
- self.ids.postcodeinp.text=""
- except:
- autopy.alert.alert("This email does not work !")
- autopy.alert.alert("Try again !")
- def contactfunc(self):#--------------------------------------------------------CONTACT-----------------------------------------------------
- self.rembuy()
- self.remove_dels()
- self.remove_rgstr()
- self.remove_settings()
- self.rempb()
- #-----POSITIONS-----#
- self.ids.ourmail.pos=140,800
- self.ids.emailinputlbl.pos=540,600
- self.ids.emailinput.pos=620,630
- self.ids.subjectinputlbl.pos=540,550
- self.ids.subjectinput.pos=620,580
- self.ids.messageinputlbl.pos=540,500
- self.ids.messageinput.pos=630,230
- self.ids.sendmail.pos=640,150
- def sendml(self):
- self.rembuy()
- self.rempb()
- self.remove_dels()
- self.remove_rgstr()
- self.remove_settings()
- #------SHMASIES-----
- email=self.emailinput_text_input.text
- subject=self.subjectinput_text_input.text
- message=self.messageinput_text_input.text
- #--acc---
- myemail="kostas2372@gmail.com"
- mypassword="myllwcutinlyswpw"
- print "contactfunc"
- try:
- msg="We have received your message!"
- mail=smtplib.SMTP('smtp.gmail.com',587)
- mail.ehlo()
- mail.starttls()
- mail.login(myemail,mypassword)
- mail.sendmail(myemail,email,msg)
- try:
- lensub=len(subject)
- lenmsg=len(message)
- if(lensub == 0):
- autopy.alert.alert("You have to write a subject !")
- elif(lenmsg==0):
- autopy.alert.alert("You have to write a message !")
- else:
- try:
- conn = sqlite3.connect('accounts.db')
- c = conn.cursor()
- c.execute("CREATE TABLE IF NOT EXISTS messages(email TEXT, subject TEXT ,message TEXT)")
- c.execute("INSERT INTO messages(email,subject,message) VALUES (?,?,?)",(email,subject,message))
- conn.commit()
- autopy.alert.alert("We have put your mail in our database")
- self.ids.messageinput.text=""
- self.ids.subjectinput.text=""
- self.ids.emailinput.text=""
- except:
- autopy.alert.alert("ERROR occured")
- except:
- autopy.alert.alert("ERROR occured")
- except:
- autopy.alert.alert("This email does not work !")
- def removecontact(self):
- print "remv"
- #POSITIONS
- self.ids.ourmail.pos=10040,10800
- self.ids.emailinputlbl.pos=54000,60000
- self.ids.emailinput.pos=62000,630000
- self.ids.subjectinputlbl.pos=54000,55000
- self.ids.subjectinput.pos=62000,58000
- self.ids.messageinputlbl.pos=540000,50000
- self.ids.messageinput.pos=600030,230000
- self.ids.sendmail.pos=640000,150000
- def product1info(self):
- webbrowser.open("https://www.galinos.gr/web/drugs/main/drugs/kabiven")
- winsound.Beep(500,500)
- def product2info(self):
- webbrowser.open("https://www.galinos.gr/web/drugs/main/substances/levothyroxine")
- winsound.Beep(500,500)
- def product3info(self):
- webbrowser.open("https://www.galinos.gr/web/drugs/main/drugs/pabal")
- winsound.Beep(500,500)
- def movpb(self):
- self.rembuy()
- self.removecontact()
- self.remove_dels()
- self.remove_rgstr()
- self.remove_settings()
- self.ids.amount.pos=220,800
- self.ids.product1.pos=100,700
- self.ids.product2.pos=100,500
- self.ids.product3.pos=100,300
- self.ids.product1am.pos=220,730
- self.ids.product2am.pos=220,530
- self.ids.product3am.pos=220,330
- self.ids.product1pr.pos=340,700
- self.ids.product2pr.pos=340,500
- self.ids.product3pr.pos=340,300
- self.ids.product1info.pos=470,730
- self.ids.product2info.pos=470,530
- self.ids.product3info.pos=470,330
- self.ids.product1ord.pos=650,730
- self.ids.product2ord.pos=650,530
- self.ids.product3ord.pos=650,330
- self.ids.product1calc.pos=850,730
- self.ids.product2calc.pos=850,530
- self.ids.product3calc.pos=850,330
- def rempb(self):
- self.ids.amount.pos=22000,80000
- self.ids.product1.pos=10000,70000
- self.ids.product2.pos=10000,50000
- self.ids.product3.pos=10000,30000
- self.ids.product1am.pos=2000020,73000
- self.ids.product2am.pos=20020,53000
- self.ids.product3am.pos=22000,330
- self.ids.product1pr.pos=34000,700000
- self.ids.product2pr.pos=34000,50000
- self.ids.product3pr.pos=34000,30000
- self.ids.product1info.pos=470000,730000
- self.ids.product2info.pos=470000,530000
- self.ids.product3info.pos=47000,330000
- self.ids.product1ord.pos=100000,100000
- self.ids.product2ord.pos=100000,100000
- self.ids.product3ord.pos=100000,100000
- self.ids.product1calc.pos=82250,73022
- self.ids.product2calc.pos=85220,53022
- self.ids.product3calc.pos=85220,33220
- self.ids.product1alpr.text=""
- self.ids.product2alpr.text=""
- self.ids.product3alpr.text=""
- def buyno(self):
- self.rembuy()
- self.shopfunc()
- def calcprice1(self):
- try:
- product1am=self.product1am_text_input.text
- d=product1am
- f=eval(d + "* 70")
- finalpay=f
- self.ids.product1alpr.text="You have to pay :"+str(finalpay)
- except:
- lnpr1=len(product1am)
- if(lnpr1==0):
- print "broo"
- self.ids.product3am.text=""
- self.ids.product3pr.text=""
- finalpay=0
- else:
- autopy.alert.alert("You have to put only numbers")
- self.ids.product1am.text=""
- def calcprice2(self):
- try:
- product2am=self.product2am_text_input.text
- d=product2am
- f=eval(d + "* 50")
- finalpay=f
- self.ids.product2alpr.text="You have to pay :"+str(finalpay)
- except:
- lnpr2=len(product2am)
- if(lnpr2==0):
- print "broo"
- self.ids.product2am.text=""
- self.ids.product2pr.text=""
- finalpay=0
- else:
- autopy.alert.alert("You have to put only numbers")
- self.ids.product2am.text=""
- def calcprice3(self):
- try:
- product3am=self.product3am_text_input.text
- d=product3am
- f=eval(d + "* 100")
- finalpay=f
- self.ids.product3alpr.text="You have to pay :"+str(finalpay)
- except:
- lnpr3=len(product3am)
- if(lnpr3==0):
- self.ids.product3am.text=""
- self.ids.product3alpr.text=""
- finalpay=0
- print "broo"
- else:
- autopy.alert.alert("You have to put only numbers")
- self.ids.product3am.text=""
- def buyyes(self):
- try:
- myemail="kostas2372@gmail.com"
- mypassword="myllwcutinlyswpw"
- product1am=self.product1am_text_input.text
- farank1=len(product1am)
- product2am=self.product2am_text_input.text
- farank2=len(product2am)
- product3am=self.product3am_text_input.text
- farank3=len(product3am)
- if (farank1 >= 1):
- password=self.password_text_input.text
- user=self.user_text_input.text
- conn = sqlite3.connect('accounts.db')
- c = conn.cursor()
- c.execute("SELECT * FROM accounts WHERE email= ? AND password= ? ",(user,password))
- for row in c.fetchall():
- name=row[0]
- lstname=row[1]
- email=row[2]
- passw=row[3]
- country=row[4]
- city=row[5]
- address=row[6]
- postalcode=row[7]
- product="KABIVEN"
- d=product1am
- g=eval(d + "* 70 + 20")
- price=str(g)
- c.execute("CREATE TABLE IF NOT EXISTS orders(name TEXT, lastname TEXT, email TEXT, country TEXT, city TEXT, address TEXT, postal TEXT, product TEXT, amount TEXT, price TEXT)")
- c.execute("INSERT INTO orders(name,lastname,email,country,city,address,postal,product,amount,price) VALUES (?,?,?,?,?,?,?,?,?,?)",(name,lstname,email,country,city,address,postalcode,product,product1am,price))
- autopy.alert.alert("THANK YOU FOR YOUR ORDER")
- conn.commit()
- self.shopfunc()
- msg="We have received your order !"
- mail=smtplib.SMTP('smtp.gmail.com',587)
- mail.ehlo()
- mail.starttls()
- mail.login(myemail,mypassword)
- mail.sendmail(myemail,user,msg)
- elif(farank2 >= 1):
- password=self.password_text_input.text
- user=self.user_text_input.text
- conn = sqlite3.connect('accounts.db')
- c = conn.cursor()
- c.execute("SELECT * FROM accounts WHERE email= ? AND password= ? ",(user,password))
- for row in c.fetchall():
- name=row[0]
- lstname=row[1]
- email=row[2]
- passw=row[3]
- country=row[4]
- city=row[5]
- address=row[6]
- postalcode=row[7]
- product="L-THYROXIN"
- d=product2am
- f=eval(d + "* 50 + 20")
- price=str(f)
- c.execute("CREATE TABLE IF NOT EXISTS orders(name TEXT, lastname TEXT, email TEXT, country TEXT, city TEXT, address TEXT, postal TEXT, product TEXT, amount TEXT, price TEXT)")
- c.execute("INSERT INTO orders(name,lastname,email,country,city,address,postal,product,amount,price) VALUES (?,?,?,?,?,?,?,?,?,?)",(name,lstname,email,country,city,address,postalcode,product,product2am,price))
- autopy.alert.alert("THANK YOU FOR YOUR ORDER")
- conn.commit()
- msg="We have received your order !"
- mail=smtplib.SMTP('smtp.gmail.com',587)
- mail.ehlo()
- mail.starttls()
- mail.login(myemail,mypassword)
- mail.sendmail(myemail,user,msg)
- self.shopfunc()
- elif(farank3>=1):
- password=self.password_text_input.text
- user=self.user_text_input.text
- conn = sqlite3.connect('accounts.db')
- c = conn.cursor()
- c.execute("SELECT * FROM accounts WHERE email= ? AND password= ? ",(user,password))
- for row in c.fetchall():
- name=row[0]
- lstname=row[1]
- email=row[2]
- passw=row[3]
- country=row[4]
- city=row[5]
- address=row[6]
- postalcode=row[7]
- product="PABAL"
- d=product3am
- f=eval(d + "* 100 + 20")
- price=str(f)
- c.execute("CREATE TABLE IF NOT EXISTS orders(name TEXT, lastname TEXT, email TEXT, country TEXT, city TEXT, address TEXT, postal TEXT, product TEXT, amount TEXT, price TEXT)")
- c.execute("INSERT INTO orders(name,lastname,email,country,city,address,postal,product,amount,price) VALUES (?,?,?,?,?,?,?,?,?,?)",(name,lstname,email,country,city,address,postalcode,product,product3am,price))
- autopy.alert.alert("THANK YOU FOR YOUR ORDER")
- conn.commit()
- msg="We have received your order !"
- mail=smtplib.SMTP('smtp.gmail.com',587)
- mail.ehlo()
- mail.starttls()
- mail.login(myemail,mypassword)
- mail.sendmail(myemail,user,msg)
- self.shopfunc()
- else:
- autopy.alert.alert("ERROR OCCURED")
- autopy.alert.alert("AN ERROR OCCURED OR WRONG EMAIL")
- except:
- autopy.alert.alert("!!!! NO INTERNET CONNECTION !!!!")
- def ordpr1(self):
- product1am=self.product1am_text_input.text
- frank1=len(product1am)
- product2am=self.product2am_text_input.text
- frank2=len(product2am)
- product3am=self.product3am_text_input.text
- frank3=len(product3am)
- if (frank1>=1):
- self.rempb()
- d=product1am
- g=eval(d + "* 70 + 20")
- f=str(g)
- self.ids.amandpr.text=str("You will order KABIVEN ! Amount : "+product1am+" and you will pay : "+f+" euros (with shipping )")
- self.ids.product3am.text=""
- self.ids.product2am.text=""
- password=self.password_text_input.text
- user=self.user_text_input.text
- conn = sqlite3.connect('accounts.db')
- c = conn.cursor()
- c.execute("SELECT * FROM accounts WHERE email= ? AND password= ? ",(user,password))
- for row in c.fetchall():
- name=row[0]
- lstname=row[1]
- email=row[2]
- passw=row[3]
- country=row[4]
- city=row[5]
- address=row[6]
- postalcode=row[7]
- self.ids.vershipping.text=str("Are you sure about your shipping information ?\n Name : "+name+"\n Last name : "+lstname+"\n Email : "+email+"\n Country : "+country+"\n City : "+city+"\n Address : "+address+"\n Postal Code : "+postalcode)
- self.ids.yesbuy.pos=400,400
- self.ids.nobuy.pos=600,400
- else:
- print "ok"
- def ordpr2(self):
- self.rempb()
- product1am=self.product1am_text_input.text
- frank1=len(product1am)
- product2am=self.product2am_text_input.text
- frank2=len(product2am)
- product3am=self.product3am_text_input.text
- frank3=len(product3am)
- self.ids.yesbuy.pos=400,400
- if (frank2>=1):
- d=product2am
- g=eval(d + "* 50" + "+ 20")
- f=str(g)
- self.ids.amandpr.text=str("You will order L-THYROXIN ! Amount : "+product2am+" and you will pay : "+f+" euros (with shipping)")
- self.ids.product3am.text=""
- self.ids.product1am.text=""
- password=self.password_text_input.text
- user=self.user_text_input.text
- conn = sqlite3.connect('accounts.db')
- c = conn.cursor()
- c.execute("SELECT * FROM accounts WHERE email= ? AND password= ? ",(user,password))
- for row in c.fetchall():
- name=row[0]
- lstname=row[1]
- email=row[2]
- passw=row[3]
- country=row[4]
- city=row[5]
- address=row[6]
- postalcode=row[7]
- self.ids.vershipping.text=str("Are you sure about your shipping information ?\n Name : "+name+"\n Last name : "+lstname+"\n Email : "+email+"\n Country : "+country+"\n City : "+city+"\n Address : "+address+"\n Postal Code : "+postalcode)
- self.ids.yesbuy.pos=400,400
- self.ids.nobuy.pos=600,400
- else:
- print "ok"
- def ordpr3(self):
- self.rempb()
- product1am=self.product1am_text_input.text
- frank1=len(product1am)
- product2am=self.product2am_text_input.text
- frank2=len(product2am)
- product3am=self.product3am_text_input.text
- frank3=len(product3am)
- if (frank3>=1):
- d=product3am
- g=eval(d + "* 100 + 20")
- f=str(g)
- self.ids.amandpr.text=str("You will order PABAL ! Amount : "+product3am+" and you will pay : "+f+" euros (with shipping)")
- self.ids.product2am.text=""
- self.ids.product1am.text=""
- password=self.password_text_input.text
- user=self.user_text_input.text
- conn = sqlite3.connect('accounts.db')
- c = conn.cursor()
- c.execute("SELECT * FROM accounts WHERE email= ? AND password= ? ",(user,password))
- for row in c.fetchall():
- name=row[0]
- lstname=row[1]
- email=row[2]
- passw=row[3]
- country=row[4]
- city=row[5]
- address=row[6]
- postalcode=row[7]
- self.ids.vershipping.text=str("Are you sure about your shipping information ?\n Name : "+name+"\n Last name : "+lstname+"\n Email : "+email+"\n Country : "+country+"\n City : "+city+"\n Address : "+address+"\n Postal Code : "+postalcode)
- self.ids.yesbuy.pos=400,400
- self.ids.nobuy.pos=600,400
- else:
- print "ok"
- def rembuy(self):
- self.ids.amandpr.text=""
- self.ids.vershipping.text=""
- self.ids.yesbuy.pos=1000000000000,10000000000
- self.ids.nobuy.pos=600222,4222200
- def shopfunc(self):
- self.rembuy()
- self.remove_dels()
- self.remove_rgstr()
- self.remove_settings()
- self.movpb()
- pass
- class CustomWidgetApp(App):
- def build(self):
- self.title = 'GMD(GREEK MEDICINES DISTRIBUTOR)'
- self.icon = 'icon.png'
- return CustomWidget()
- customWidget = CustomWidgetApp()
- customWidget.run()
- #i have to do the login and registration database and program COMPLETED
- #I have to do the contacts I COMPLETED
- #I have to do the db for product ii
- #I have to do the settings III COMPLETED
- #I have to do the about us option IIII COMPLETED
- #I have to do the shop func and we are done ! COMPLETED
- """
- row[0]=First_Name
- row[1]=Last_name
- row[2]=email
- row[3]=password
- row[4]=country
- row[5]=city
- row[6]=address
- row[7]=postal_code
- row[8]=position
- 4/9/2018 :
- We have to make the user settings
- 7/9/2018:
- We have completed the fucking settings and we have completed some registrations options
- 10/9/2018:
- We have completed the about us option and now we have started the contact form !
- 29/9/2018 :
- The program has been delayed but we have done the contact form and now we have done the design for shopfunc ,and the price calculation funvtion
- 4/10/2018 :
- The program is ready , Good job Kostas !!!!!!
- """
- #c.execute("UPDATE accounts SET position = 'user' WHERE email = (?) and password = (?)) VALUES (?, ?) ",(emailinp, passwordinp,))
- # ------------------------KIVY-------------
- # file name: home.py
- #:kivy 1.10.0
- <CustomWidget>:
- #login
- password_text_input: password
- user_text_input: user
- #-----register
- firstnaminp_text_input: firstnaminp
- lastnameinp_text_input: lastnameinp
- emailinp_text_input: emailinp
- passwordinp_text_input: passwordinp
- countryinp_text_input: countryinp
- cityinp_text_input: cityinp
- addressinp_text_input: addressinp
- postcodeinp_text_input: postcodeinp
- #-----settings
- chname_text_input: chname
- chlstname_text_input: chlstname
- chemail_text_input: chemail
- chpassword_text_input: chpassword
- chcountry_text_input: chcountry
- chcity_text_input: chcity
- chaddress_text_input: chaddress
- chpostal_text_input: chpostal
- #----Contact form
- emailinput_text_input: emailinput
- subjectinput_text_input: subjectinput
- messageinput_text_input: messageinput
- #----Shop
- product1am_text_input: product1am
- product2am_text_input: product2am
- product3am_text_input: product3am
- #XEKINAME
- TextInput:
- id:password
- size:200,30
- password:True
- multiline:True
- pos:990,540
- Label:
- id:passlab
- font_size:24
- color:0.7,0,0,1
- pos:860,510
- text:"Password :"
- Button:
- id:showpassword
- size:150,30
- text:"Show Password"
- on_release:password.password=False
- color:0,0.7,0,1
- on_release:self.pos=14000,14000
- pos:1240,540
- on_release:hidepassword.pos=1240,540
- Button:
- color:0,0.7,0,1
- id:hidepassword
- size:150,30
- pos:15000,15000
- on_release:self.pos=10000,10000
- on_release:showpassword.pos=1240,540
- on_release:password.password=True
- text:"Hide password"
- TextInput:
- id:user
- size:200,30
- password:False
- multiline:True
- pos:990,590
- Label:
- id:userlab
- font_size:24
- color:0.7,0,0,1
- pos:860,563
- text:"Email :"
- color:0.7,0,0,1
- Button:
- id:login
- on_release:root.login()
- pos:900,500
- size:100,10
- text:"Login"
- color:0,0.6,0,1
- Button:
- id:registera
- on_release:root.register()
- pos:1000,500
- size:100,10
- text:"Register"
- color:0,0.6,0,1
- Button:
- id:aply
- text:"Apply"
- pos:9999,9999
- size:100,20
- color:1,0,0.2,1
- on_release:root.aply()
- Label:
- pos:9999,9999
- font_size:24
- id:firstnamlab
- text:"First Name :"
- color:1,0,0,1
- Label:
- pos:9999,9999
- font_size:24
- text:"Last Name :"
- id:lastnamelab
- color:1,0,0,1
- Label:
- pos:9999,9999
- text:"Email :"
- font_size:24
- color:1,0,0,1
- id:emaillab
- Label:
- pos:9999,9999
- color:1,0,0,1
- text:"Password :"
- font_size:24
- id:passwordlab
- Label:
- pos:9999,9999
- font_size:24
- color:1,0,0,1
- text:"Country :"
- id:countrylab
- Label:
- pos:9999,9999
- font_size:24
- color:1,0,0,1
- text:"City :"
- id:citylab
- Label:
- pos:9999,9999
- font_size:24
- color:1,0,0,1
- text:"Address :"
- id:addresslab
- Label:
- pos:9999,9999
- font_size:24
- text:"Post Number :"
- id:postcodelab
- color:1,0,0,1
- TextInput:
- id:firstnaminp
- size:200,25
- pos:9999,9999
- font_size:12
- TextInput:
- size:200,25
- id:lastnameinp
- pos:9999,9999
- font_size:12
- TextInput:
- size:200,25
- id:emailinp
- pos:9999,9999
- font_size:12
- TextInput:
- size:200,25
- id:passwordinp
- password:True
- pos:9999,9999
- font_size:12
- TextInput:
- size:200,25
- id:countryinp
- pos:9999,9999
- font_size:12
- TextInput:
- size:200,25
- id:cityinp
- pos:9999,9999
- font_size:12
- TextInput:
- size:200,25
- id:addressinp
- pos:9999,9999
- font_size:12
- TextInput:
- size:200,25
- id:postcodeinp
- pos:9999,9999
- font_size:12
- Button:
- pos:9999,9999
- on_release:root.ret()
- text:"change account"
- size:210,30
- id:peas
- on_release:infolab.pos=15000,15000
- Button:
- id:infobtn
- size:150,30
- pos:10000,10000
- color:0.3,0,0,1
- text:"About us"
- on_release:infolab.pos=1000,550
- on_release:infohead.pos=920,700
- on_release:infoimg.pos=580,30
- on_release:root.remove_settings()
- on_release:root.remove_dels()
- on_release:root.removecontact()
- on_release:root.rempb()
- on_release:root.rembuy()
- Label:
- id:infolab
- text:'“Morris & Dickson has established a solid reputation that distinguishes\n us from our competition. We understand that a reputation for th\n highest level of quality and service and visionary innovation must\nbe constantly renewed. We supply our customers with exactly what’s needed \n to provide their patients with the highest level of pharmaceutical care.\n We do so consistently, on time, at the right place and at the right price.\nPaul Dickson, President'
- markup: True
- color:0.4,0,0,1
- pos:14000,14000
- font_size:24
- shorten: True
- ellipsis_options: {'color':(1,0.5,0.5,1),'underline':True}
- italic: True
- Label:
- id:infohead
- text:"About us :"
- color:0.5,0,0,1
- bold:True
- italic:True
- pos:9999,9999
- font_size:48
- Image:
- id:infoimg
- source:'farmak.jpg'
- size:780,420
- pos:9999,9999
- Button:
- id:set
- text:"Settings"
- pos:9999,9999
- color:0.8,0,0,1
- size:210,30
- on_release:root.settings()
- TextInput:
- id:chname
- pos:9999,9999
- size:200,30
- Button:
- id:chnamebtn
- text:"Apply"
- size:300,30
- on_release:root.update_user_name()
- pos:10000,10000
- Label:
- pos:10000,10000
- id:chfrstnmlbl
- font_size:24
- color:0.5,0.5,0,1
- text:"Change first name :"
- TextInput:
- id:chlstname
- pos:9999,9999
- size:200,30
- Button:
- id:chlstnamebtn
- text:"Apply"
- size:300,30
- on_release:root.update_user_lstname()
- pos:10000,10000
- Label:
- pos:10000,10000
- id:chlstsnmlbl
- font_size:24
- color:0.5,0.5,0,1
- text:"Change Last name :"
- #email
- TextInput:
- id:chemail
- pos:9999,9999
- size:200,30
- Button:
- id:chemailbtn
- text:"Apply"
- size:300,30
- on_release:root.update_user_email()
- pos:10000,10000
- Label:
- pos:10000,10000
- id:chemaillbl
- font_size:24
- color:0.5,0.5,0,1
- text:"Change Your email :"
- #password
- TextInput:
- id:chpassword
- pos:9999,9999
- size:200,30
- password:True
- Button:
- id:chpasswordbtn
- text:"Apply"
- size:300,30
- on_release:root.update_user_password()
- pos:10000,10000
- Label:
- pos:10000,10000
- id:chpasswordlbl
- font_size:24
- color:0.5,0.5,0,1
- text:"Change Your password :"
- # """
- # Label:
- # pos:50000,50000
- # text:"PUT THE CODE WE SENT IN YOUR EMAIL"
- # color:0.5,0.5,0,1
- # id:verfpass
- # TextInput:
- # id:verippass
- # po
- # """
- #country
- TextInput:
- id:chcountry
- pos:9999,9999
- size:200,30
- password:False
- Button:
- id:chcountrybtn
- text:"Apply"
- size:300,30
- on_release:root.update_user_country()
- pos:10000,10000
- Label:
- pos:10000,10000
- id:chcountrylbl
- font_size:24
- color:0.5,0.5,0,1
- text:"Change Your Country :"
- #city
- TextInput:
- id:chcity
- pos:9999,9999
- size:200,30
- password:False
- Button:
- id:chcitybtn
- text:"Apply"
- size:300,30
- on_release:root.update_user_city()
- pos:10000,10000
- Label:
- pos:10000,10000
- id:chcitylbl
- font_size:24
- color:0.5,0.5,0,1
- text:"Change Your City :"
- #address
- TextInput:
- id:chaddress
- pos:9999,9999
- size:200,30
- password:False
- Button:
- id:chaddressbtn
- text:"Apply"
- size:300,30
- on_release:root.update_user_address()
- pos:10000,10000
- Label:
- pos:10000,10000
- id:chaddresslbl
- font_size:24
- color:0.5,0.5,0,1
- text:"Change Your address :"
- #postal
- TextInput:
- id:chpostal
- pos:9999,9999
- size:200,30
- password:False
- Button:
- id:chpostalbtn
- text:"Apply"
- size:300,30
- on_release:root.update_user_postal()
- pos:10000,10000
- Label:
- pos:10000,10000
- id:chpostallbl
- font_size:24
- color:0.5,0.5,0,1
- text:"Change Your postal :"
- Button:
- pos:10000,10000
- text:"Delete my Account !!!"
- color:0.5,0,0,1
- size:500,30
- on_release:root.delete_my_acc_vrf()
- id:delv
- Label:
- italic: True
- id:verification_del
- text:"Are you sure that you want to delete your account ?"
- color:0.7,0,0,1
- pos:10000,10000
- font_size:24
- Button:
- pos:10000,10000
- text:"Yes"
- color:1,0,0,1
- size:150,30
- on_release:root.delete_my_acc_yes()
- id:verification_yes
- Button:
- pos:10000,10000
- text:"No"
- color:1,0,0,1
- size:150,30
- on_release:root.delete_my_acc_no()
- id:verification_no
- Button:
- pos:10000,10000
- text:"Contact"
- color:0,0.5,0.5,1
- size:150,30
- id:contactmainbtn
- on_release:root.contactfunc()
- #Contact EMAIL
- Label:
- pos:10000,10000
- text: "Our email : kostas2372@gmail.com"
- italic:True
- color:0.5,0.7,0,1
- id:ourmail
- font_size:24
- #CONTACT FORM
- Label:
- pos:10000,10000
- text: "Email :"
- italic:True
- color:0.5,0.7,0,1
- id:emailinputlbl
- font_size:20
- TextInput:
- pos:10000,10000
- italic:True
- color:0.5,0.7,0,1
- id:emailinput
- size:200,30
- #SUBJECT
- Label:
- pos:10000,10000
- text: "Subject :"
- italic:True
- color:0.5,0.7,0,1
- id:subjectinputlbl
- font_size:20
- TextInput:
- pos:10000,10000
- italic:True
- color:0.5,0.7,0,1
- id:subjectinput
- size:200,30
- #Message
- Label:
- pos:10000,10000
- text: "Message :"
- italic:True
- color:0.5,0.7,0,1
- id:messageinputlbl
- font_size:20
- TextInput:
- pos:10000,10000
- italic:True
- color:0.5,0.7,0,1
- id:messageinput
- size:350,300
- Button:
- pos:10000,10000
- italic:True
- color:0.5,0.7,0,1
- id:sendmail
- size:150,30
- text:"Send..."
- on_release:root.sendml()#----------------------------------------------STOP-------------------------------------------
- Button:
- pos:100000,10000
- color:0.6,0.3,0,1
- id:shop
- size:150,30
- text:"Shop"
- on_release:root.shopfunc()
- Label:
- pos:100000,10000
- color:0.6,0.3,0,1
- id:amount
- font_size:24
- text:"Amount"
- Label:#----------------------------product 1---------------------------------
- pos:100000,10000
- color:0.6,0.3,0,1
- id:product1
- font_size:24
- text:"KABIVEN"
- TextInput:
- size:100,40
- multiline:False
- pos:10000,10000
- id:product1am
- input_filter: "int"
- Label:
- color:0.1,0.9,0,1
- pos:10000,10000
- id:product1pr
- text:"2566ml :70 dollars"
- Button:
- pos:10000,10000
- color:0.9,0,0.1,1
- text:"Check more !"
- id:product1info
- size:150,30
- on_release:root.product1info()
- Button:
- pos:10000,15000
- color:0.6,0,0.5,1
- text:"Order..."
- id:product1ord
- size:150,30
- on_release:root.ordpr1()
- Button:
- pos:10000,15000
- color:0.6,0.1,0.5,1
- text:"Calculate..."
- id:product1calc
- size:150,30
- on_release:root.calcprice1()
- Label:
- color:0.1,0.9,0,1
- pos:1080,700
- id:product1alpr
- text:""
- Label:#----------------------------product 2---------------------------------
- pos:100000,10000
- color:0.6,0.3,0,1
- id:product2
- font_size:24
- text:" L-THYROXIN "
- TextInput:
- size:100,40
- multiline:False
- pos:10000,10000
- id:product2am
- input_filter: "int"
- Label:
- color:0.1,0.9,0,1
- pos:10000,10000
- id:product2pr
- text:"100mg :50 dollars"
- Button:
- pos:10000,10000
- color:0.9,0,0.1,1
- text:"Check more !"
- id:product2info
- size:150,30
- on_release:root.product2info()
- Button:
- pos:10000,15000
- color:0.6,0,0.5,1
- text:"Order..."
- id:product2ord
- size:150,30
- on_release:root.ordpr2()
- Button:
- pos:10000,15000
- color:0.6,0.1,0.5,1
- text:"Calculate..."
- id:product2calc
- size:150,30
- on_release:root.calcprice2()
- Label:
- color:0.1,0.9,0,1
- pos:1080,500
- id:product2alpr
- text:""
- Label:
- text:
- Label:#----------------------------product 3---------------------------------
- pos:100000,10000
- color:0.6,0.3,0,1
- id:product3
- font_size:24
- text:" PABAL "
- TextInput:
- size:100,40
- multiline:False
- id:product3am
- pos:19999,11999
- Label:
- color:0.1,0.9,0,1
- pos:10000,10000
- id:product3pr
- text:"100msg :100 dollars"
- Button:
- pos:10000,10000
- color:0.9,0,0.1,1
- text:"Check more !"
- id:product3info
- size:150,30
- on_release:root.product3info()
- input_filter: "int"
- Button:
- pos:10000,15000
- color:0.6,0,0.5,1
- text:"Order..."
- id:product3ord
- size:150,30
- on_release:root.ordpr3()
- Button:
- pos:10000,15000
- color:0.6,0.1,0.5,1
- text:"Calculate..."
- id:product3calc
- size:150,30
- on_release:root.calcprice3()
- Label:
- color:0.1,0.9,0,1
- pos:1080,300
- id:product3alpr
- text:""
- #----------------------order-----------------------
- Label:
- color:0.1,0.9,0,1
- pos:550,760
- text:""
- id:amandpr
- font_size:24
- italic:True
- Label:
- text:""
- id:vershipping
- pos:350,600
- color:0.1,0.9,0,1
- font_size:22
- italic:True
- Button:
- text:"Yes"
- color:0.9,0.1,0,1
- size:150,30
- id:yesbuy
- pos:1000,1000000
- on_release:root.buyyes()
- Button:
- text:"No"
- color:0.9,0.1,0,1
- size:150,30
- id:nobuy
- pos:1000,1000000
- on_release:root.buyno()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement