PYTHON

www.engineernotes.com

Varities of Print Statement:-

->age=23
->name=”Ram”
 i). print(age,name)

ii). print(“My name is”,name, “And my age is”,age)

iii). print(“My name is %s and my age is %d”%(name,age))

iv). print(“My name is {} and my age is {}”.format(name,age))

v). print(“My age is {1} and my name is {0}”.format(name,age))

vi).print(“My name is {0} and age is {1:5d}”.format(name,age))

vii).print(“My name is {a} and my age is {b}”.format(a=name,b=age))

 

 

Basic Functions:-

1-> print(int(’12’))
2-> print(int(“100010”,2))
3-> print(int(“FF”,16))
4-> print(oct(int(“12”)))
5-> print(hex(58))
6-> print(bin(58))
7-> print(ord(‘A’))
8-> print(chr(65))
9-> print(dir(str))
10-> print(float(“12.5”))
11-> print(bytes(“ram”, ‘utf-16’))
12-> print(type(12))
13-> print(type(‘s’))
14-> print(type(‘ram’))
15-> print(type(“ram”))
16-> print(type(“””ram”””))
17-> print(type(“12”))

18-> str=”yash”
         print(len(str))

19-> str=”hello how are you”
         print(str.lower())

20-> str=”hello how are you”
         print(str.upper())

21-> str=”hello how are you”
         print(str.capitalize())

22-> str=”hello how are you”
         print(str.title())

23-> str=”hello how are you”
         print(str.swapcase())

24-> str=”hello”
         print(str.isalpha())

25-> str=”001″
         print(str.isnumeric())

26-> str=”001″
         print(str.isdigit())

27-> str=”hello ram”
         print(str.isspace())

28-> str=”hello how are {}”
         print(str.format(‘you’))

29-> str=”hello how are you”
         print(str.startswith(“h”))

30-> str=”hello”
         print(str.zfill(10))

31-> str=”123567″
         str=str.join(“ab”)
         print(str)

32-> str=”ram \t shyam”
         print(str)
         print(str.expandtabs(3))

33-> str=”What is the is “
         print(str.count(“is”))

34-> str=”hello how are you”
         print(max(str))

35-> str=”hello how are you”
         print(min(str))

36-> str=”Hello World”
         print(str.rindex(“World”))

37-> str=”hello is how is are is you”
         print(str.split(“is”))

38-> str=”hello is how is are is you”
         print(str.partition(“is”))

39-> str=”Hello How”
         print(str[8])
         print(str[1:5])
         print(str[1:8:2])
         print(str[-1])
         print(str[ : :-1])
         print(str[3:])

Calculator Interface:-

 from tkinter import *
 from tkinter import messagebox

 root=Tk()
 root.geometry(“500×500”)
 root.resizable(False,False)

 def onWindowClose():
 if messagebox.askyesno(“Confirm”,”Are you Sure,you want to exit”):
 root.destroy()

 root.protocol(“WM_DELETE_WINDOW”,onWindowClose)

 frametop=Frame(root)
 frametop.pack(side=TOP,fill=X,ipady=20)

 entry=Entry(frametop,bd=5,font=(“arial”,30)).pack(fill=BOTH,expand=True)

 framebottom=Frame(root,bg=”orange”)
 framebottom.pack(side=TOP,fill=BOTH,expand=True)

 btnlist=[‘1′,’2′,’3′,’4′,’5′,’6′,’7′,’8′,’9′,’0′,’+’,’=’]
 for r in range(0,3):
 for c in range(0,4):
 Button(framebottom,text=btnlist[4*r+c],bd=5,font=(60)).grid(row=r,column=c,sticky=”nsew”,padx=2,pady=2)
 framebottom.grid_rowconfigure(r,weight=1)
 framebottom.grid_columnconfigure(c,weight=1)
 root.mainloop()

Diffrent Types of Frames in Python :-

1.

from tkinter import*

root=Tk()
root.title(“My First GUI”)
root.geometry(“1000×1000+300+300”)

frame=Frame(root,bg=”red”,width=100,height=100)
frame.pack(side=”left”)

button=Button(frame,text=”Click Here”)
button.pack()

button=Button(frame,text=”Click Here”)
button.pack()

root.mainloop()

 

2.

from tkinter import*

root=Tk()
root.title(“My first GUI”)
root.geometry(“200×200+300+300”)

button1=Button(root,text=”Click Here!”)
button1.pack(side=”top”,fill=X)

button2=Button(root,text=”Click Here!”)
button2.pack(side=”top”,fill=X)

root.mainloop()

 

3.

from tkinter import*

root=Tk()
root.title(“My first GUI”)
root.geometry(“200×200+300+300”)

button1=Button(root,text=”Click Here!”)
button1.pack(side=”top”,fill=BOTH,expand=True)

button2=Button(root,text=”Click Here!”)
button2.pack(side=”top”,fill=X,expand=True)

root.mainloop()

 

4.

from tkinter import*

root=Tk()
root.title(“My first GUI”)
root.geometry(“200×200+300+300”)

button1=Button(root,text=”Click Here!”)
button1.pack(side=”top”,fill=BOTH,expand=True)

button2=Button(root,text=”Click Here!”,bg=”yellow”,bd=10)
button2.pack(side=”top”,fill=BOTH,expand=True)

root.mainloop()

 

5.

from tkinter import*

root=Tk()
root.title(“My first GUI”)
root.geometry(“200×200+300+300”)

button1=Button(root,text=”Click Here!”)
button1.pack(side=”top”,fill=BOTH,expand=True)

button2=Button(root,text=”Click Here!”,bg=”yellow”,fg=”red”,bd=10)
button2.pack(side=”top”,fill=BOTH,expand=True)

root.mainloop()

 

6.

from tkinter import*

def toast():
print(“Welcome to python-Tkinter”)

root=Tk()
root.title(“My first GUI”)
root.geometry(“200×200+300+300”)

button2=Button(root,text=”Click Here!”,command=toast)
button2.pack(side=”top”,fill=BOTH,expand=True)

root.mainloop()

 

7.

from tkinter import*

root=Tk()
root.geometry(“300×300+100+100”)
root.title(“Layout Manager pack”)
button=Button(root,text=”Click here”,bg=”lightgreen”)
button.pack(anchor=E);
root.mainloop()

 

8.

from tkinter import*

root=Tk()
root.geometry(“300×300+100+100”)
root.title(“Layout Manager pack”)
button1=Button(root,text=”1″,bg=”lightgreen”)
button2=Button(root,text=”2″,bg=”orange”)
button3=Button(root,text=”3″,bg=”purple”)
button1.pack(side=”top”,fill=BOTH,expand=True,padx=5,pady=5);
button2.pack(side=”top”,fill=BOTH,expand=True,padx=5,pady=5);
button3.pack(side=”top”,fill=BOTH,expand=True,padx=5,pady=5);
root.mainloop()

 

9.

from tkinter import*

root=Tk()
root.geometry(“300×300+100+100”)
root.title(“Layout Manager pack”)
button1=Button(root,text=”1″,bg=”lightgreen”,font=(“Arial” “35” “BOLD”))
button2=Button(root,text=”2″,bg=”orange”)
button3=Button(root,text=”3″,bg=”purple”)
button1.pack(side=”top”,fill=BOTH,expand=True,padx=5,pady=5);
button2.pack(side=”top”,fill=BOTH,expand=True,padx=5,pady=5);
button3.pack(side=”top”,fill=BOTH,expand=True,padx=5,pady=5);
root.mainloop()

 

10.

from tkinter import*

root=Tk()
root.geometry(“300×300+100+100”)
root.title(“Layout Manager pack”)
frame1=Frame(root,bg=”lightgreen”,bd=2)
frame2=Frame(root,bg=”orange”,bd=2)
frame3=Frame(root,bg=”purple”,bd=2)
frame1.pack(side=”top”,fill=BOTH,expand=True,padx=5,pady=5);
frame2.pack(side=”top”,fill=BOTH,expand=True,padx=5,pady=5);
frame3.pack(side=”top”,fill=BOTH,expand=True,padx=5,pady=5);
root.mainloop()

 

11.

from tkinter import*

root=Tk()
root.geometry(“300×300+100+100”)
root.title(“Layout Manager pack”)
frame1=Frame(root,bg=”lightgreen”,highlightbackground=”blue”,highlightthickness=1,relief=SUNKEN,bd=1)
frame2=Frame(root,bg=”orange”,highlightbackground=”blue”,highlightthickness=1)
frame3=Frame(root,bg=”purple”,highlightbackground=”blue”,highlightthickness=1)
frame1.pack(side=”top”,fill=BOTH,expand=True,padx=5,pady=5);
frame2.pack(side=”top”,fill=BOTH,expand=True,padx=5,pady=5);
frame3.pack(side=”top”,fill=BOTH,expand=True,padx=5,pady=5);
root.mainloop()

 

12.

from tkinter import*

root=Tk()
root.geometry(“300×300+100+100”)
root.title(“Layout Manager pack”)
frame1=Frame(root,bg=”lightgreen”,highlightbackground=”blue”,highlightthickness=1,relief=SUNKEN,bd=1)
frame2=Frame(root,bg=”orange”,highlightbackground=”blue”,highlightthickness=1)
frame3=Frame(root,bg=”purple”,highlightbackground=”blue”,highlightthickness=1)
frame1.pack(side=”top”,fill=BOTH,expand=True,padx=5,pady=5);
frame1.pack_propogate(False)

frame2.pack(side=”top”,fill=BOTH,expand=True,padx=5,pady=5);
frame3.pack(side=”top”,fill=BOTH,expand=True,padx=5,pady=5);

userEntry=Entry(frame1,text=”yash soni”,width=200)
userEntry.pack()

root.mainloop()

 

13.

from tkinter import*

root=Tk()
root.geometry(“300×300+100+100”)
root.title(“Layout Manager pack”)
frame1=Frame(root,bg=”lightgreen”,highlightbackground=”blue”,highlightthickness=1)
frame2=Frame(root,bg=”orange”,highlightbackground=”blue”,highlightthickness=1)
frame3=Frame(root,bg=”purple”,highlightbackground=”blue”,highlightthickness=1)
frame1.pack(side=”top”,fill=BOTH,expand=True,padx=5,pady=5);

frame2.pack(side=”top”,fill=BOTH,expand=True,padx=5,pady=5);
frame3.pack(side=”top”,fill=BOTH,expand=True,padx=5,pady=5);

userEntry=Entry(frame1,text=”yash soni”,width=200)
userEntry.pack()

root.mainloop()

 

14.

from tkinter import*

root=Tk()

root.geometry(“300×300+100+100”)
root.title(“Layout Manager pack”)
frame1=Frame(root)
frame2=Frame(root)
frame3=Frame(root)
frame1.pack(side=”top”,fill=BOTH,expand=True,padx=5,pady=5);
frame2.pack(side=”top”,fill=BOTH,expand=True,padx=5,pady=5);
frame3.pack(side=”top”,fill=BOTH,expand=True,padx=5,pady=5);

type1=StringVar()
type2=StringVar()

userEntry1=Entry(frame1,textvariable=type1)
userEntry2=Entry(frame2,textvariable=type2)
btn=Button(frame3,text=”Add”)

userEntry1.get()
userEntry1.set(“yash soni”)
userEntry1.delete(0,END)
userEntry1.focus_set()

userEntry1.pack()
userEntry2.pack()
btn.pack()

root.mainloop()

 

15.

from tkinter import *
from tkinter import messagebox

def show():
messagebox.showinfo(“Dialogbox”,”record added successfully…..thanks”)
def show1():
messagebox.showerror(“Dialogbox”,”record added successfully…..thanks”)

def show2():
messagebox.askyesno(“Dialogbox”,”record added successfully…..thanks”)

root=Tk()
root.title(“My First Guide”)
width=root.winfo_screenwidth()
height=root.winfo_screenheight()
root.iconbitmap(r’C:\Users\Yash\Desktop\quakechamps.ico’)
root.geometry(“{0}x{1}”.format(width,height))
button1=Button(root,text=”show dialog_box”,command=show)
button1.pack(side=”top”)
entry=Entry(root,show=”#”)
entry.pack()
button2=Button(root,text=”show dialog_box”,command=show1)
button2.pack(side=”top”)

button3=Button(root,text=”show dialog_box”,command=show2)
button3.pack(side=”top”)

root.mainloop()

 

16.

from tkinter import *
from tkinter import messagebox

def show():
messagebox.showinfo(“Dialogbox”,”record added successfully…..thanks”)
def show1():
messagebox.showerror(“Dialogbox”,”record added successfully…..thanks”)

def show2():
messagebox.askyesno(“Dialogbox”,”record added successfully…..thanks”)

root=Tk()
root.title(“My First Guide”)
width=root.winfo_screenwidth()
height=root.winfo_screenheight()
root.iconbitmap(r’C:\Users\Yash\Desktop\quakechamps.ico’)
root.geometry(“{0}x{1}”.format(width,height))
button1=Button(root,text=”show dialog_box”,command=show)
button1.pack(side=”top”)
entry=Entry(root,show=”#”)
entry.pack()
button2=Button(root,text=”show dialog_box”,command=show1)
button2.pack(side=”top”)

button3=Button(root,text=”show dialog_box”,command=show2)
button3.pack(side=”top”)

root.mainloop()

 

17.

from tkinter import *
from tkinter.scrolledtext import ScrolledText

def show(event):
print(“button rightclick”,event.x,event.y)

root=Tk()
root.geometry(“500×500”)
root.title(“Section Division”)
frame=Frame(root,bg=”red”)
frame.pack(fill=BOTH,expand=True)

menu=Menu(frame)
menu.add_command(label=”Open”,command=open)
menu.add_command(label=”Save”,command=open)
menu.add_command(label=”Save As”,command=open)

frame.bind(“<Motion>”,show)

root.mainloop()

18.

from tkinter import *
from tkinter.scrolledtext import ScrolledText
from tkinter import filedialog

root=Tk()
root.geometry(“500×500”)
root.title(“Section Division”)
scrolledtext=ScrolledText(root)
scrolledtext.pack(fill=BOTH,expand=True)

m=Menu(root)
root.config(menu=m)

def show():
filename=filedialog.askopenfilename()
data=open(filename,”r”).read()
scrolledtext.insert(1.0,data)

submenu=Menu(m,tearoff=0)
m.add_cascade(label=’File’,menu=submenu)
submenu.add_command(label=’Open’, command=show)
submenu.add_command(label=’Exit’, command=root.destroy)

menu=Menu(root)
menu.add_command(label=”copy”)
menu.add_command(label=”cut”)
menu.add_command(label=”paste”)

def popupshow(event):
menu.tk_popup(event.x_root,event.y_root,0)

scrolledtext.bind(“<Button-3>”,popupshow)

root.mainloop()

19.

from tkinter import *
from PIL import Image,ImageTk

image=Image.open(“avatar.jpg”)
photo=ImageTk.PhotoImage(image)
label=Label(image=photo,bd=10,bg=”white”)
label.pack()
root.mainloop()

20.

from tkinter import *

root=Tk()
root.geometry(“300×300”)
frame1=Frame(root,bg=”powder blue”,height=100)
frame1.grid(row=0,column=0,sticky=”nsew”);

frame2=Frame(root,bg=”red”,height=100)
frame2.grid(row=0,column=1,sticky=”nsew”);

frame3=Frame(root,bg=”blue”,height=100)
frame3.grid(row=0,column=2,sticky=”nsew”);

frame4=Frame(root,bg=”yellow”,height=100)
frame4.grid(row=1,column=1,sticky=”nsew”);

frame5=Frame(root,bg=”black”,height=100)
frame5.grid(row=1,column=0,sticky=”nsew”);

frame6=Frame(root,bg=”green”,height=100)
frame6.grid(row=1,column=2,sticky=”nsew”);

frame7=Frame(root,bg=”green”,height=100)
frame7.grid(row=2,column=0,sticky=”nsew”);

frame8=Frame(root,bg=”pink”,height=100)
frame8.grid(row=2,column=1,sticky=”nsew”);

frame9=Frame(root,bg=”orange”,height=100)
frame9.grid(row=2,column=2,sticky=”nsew”);

root.grid_columnconfigure(0,weight=1)
root.grid_columnconfigure(1,weight=1)
root.grid_columnconfigure(0,weight=1)
root.grid_columnconfigure(1,weight=1)
root.grid_columnconfigure(2,weight=1)
root.grid_columnconfigure(0,weight=1)
root.mainloop()

21.

from tkinter import *
from tkinter.scrolledtext import ScrolledText

def show(event):
print(“Button right clicked”,event.x,event.y)

root=Tk()
root.geometry(“500×500”)
root.title(“Section Division”)

frame=Frame(root,bg=”red”)
frame.pack(fill=BOTH,expand=True)

menu=Menu(frame)
menu.add_command(label=”Open”,command=open)
menu.add_command(label=”Save”,command=open)
menu.add_command(label=”Save As”,command=open)

frame.bind(“<Double-3>”,show)

root.mainloop()

22.

from tkinter import *
from tkinter.scrolledtext import ScrolledText

def show(event):
print(“Button right clicked”,event.x,event.y)

root=Tk()
root.geometry(“500×500”)
root.title(“Section Division”)

frame=Frame(root,bg=”red”)
frame.pack(fill=BOTH,expand=True)

menu=Menu(frame)
menu.add_command(label=”Open”,command=open)
menu.add_command(label=”Save”,command=open)
menu.add_command(label=”Save As”,command=open)

frame.bind(“<Double-3>”,show)

root.mainloop()

23.

from tkinter import *
from tkinter.scrolledtext import ScrolledText
from tkinter import filedialog

def show(event):
filename=filedialog.askopenfile()
print(“Selected File Name:- “,filename())

root=Tk()
root.geometry(“500×500”)
root.title(“Section Division”)
frame=Frame(root,bg=”red”)
frame.pack(fill=BOTH,expand=”True”)

menu=Menu(frame)
menu.add_command(label=”Open”,command=open)
menu.add_command(label=”Save”,command=open)
menu.add_command(label=”Save As”,command=open)

frame.bind(“<Double-3>”,show)

root.mainloop()

24.

from tkinter import *
from tkinter.scrolledtext import ScrolledText
from tkinter import filedialog

def show(event):
filename=filedialog.askopenfile()
print(“Selected File Name:- “,filename())

root=Tk()
root.geometry(“500×500”)
root.title(“Section Division”)

m=Menu(root)
root.config(menu=m)

submenu=Menu(m,tearoff=0)
m.add_cascade(label=’file’,menu=submenu)
submenu.add_command(label=’Open’,command=show)
submenu.add_command(label=’Exit’,command=root.destroy)

root.mainloop()

25.

from tkinter import *
from tkinter.scrolledtext import ScrolledText

def show(event):
print(“button right clicked”,event.x,event.y)

root=Tk()
root.geometry(“500×500”)
root.title(“Section Division”)

frame=Frame(root,bg=”red”)
frame.pack(fill=BOTH,expand=True)

menu=Menu(frame)
menu.add_command(label=”Open”,command=open)
menu.add_command(label=”Save”,command=open)
menu.add_command(label=”Save As”,command=open)

frame.bind(“<Motion>”,show)

root.mainloop()

 

Frame-1 :-

from tkinter import *
from tkinter.scrolledtext import ScrolledText

root=Tk()
root.geometry(“1000×750”)
root.title(“Project Pack”)

frame1=Frame(root,height=”200″,relief=”solid”,borderwidth=2)
frame1.pack(side=TOP,fill=X);

frame2=Frame(root,height=”60″,width=”300″,relief=”solid”,borderwidth=2)
frame2.pack(side=LEFT,fill=Y);

frame3=Frame(root,height=”60″,width=”300″,relief=”solid”,borderwidth=2)
frame3.pack(side=RIGHT,fill=Y);

frame4=Frame(root,height=”60″,width=”130″,relief=”solid”,borderwidth=2)
frame4.pack(anchor=”center”,fill=BOTH,expand=True);

frame5=Frame(frame1,width=”70″,height=”70″,relief=”solid”,borderwidth=.4)
frame5.pack(side=LEFT)

image1=PhotoImage(file=”person.png”)
label=Label(frame5,image=image1,width=70,height=70)
label.pack(side=LEFT,padx=10,pady=10)

label=Label(frame1,text=”Frank”,font=(“bold”,15))
label.pack(side=LEFT)

frame6=Frame(frame1,height=”60″,width=”300″,relief=”solid”,borderwidth=0.4)
frame6.pack(side=RIGHT,fill=Y);

image2=PhotoImage(file=”Archive.png”)
label=Label(frame6,image=image2,width=”90″,height=”90″)
label.grid(row=0,column=0,padx=18)

image3=PhotoImage(file=”setting.png”)
label=Label(frame6,image=image3,width=”90″,height=”90″)
label.grid(row=0,column=1,padx=18)

image4=PhotoImage(file=”billing.png”)
label=Label(frame6,image=image4,width=”90″,height=”90″)
label.grid(row=0,column=2,padx=18)

image5=PhotoImage(file=”help.png”)
label=Label(frame6,image=image5,width=”90″,height=”90″)
label.grid(row=0,column=3,padx=18)

label=Label(frame6,text=”Archive”,font=(“calibri”,12))
label.grid(row=1,column=0)

label=Label(frame6,text=”Setting”,font=(“calibri”,12))
label.grid(row=1,column=1)

label=Label(frame6,text=”Billing”,font=(“calibri”,12))
label.grid(row=1,column=2)

label=Label(frame6,text=”help”,font=(“calibri”,12))
label.grid(row=1,column=3)

frame10=Label(frame4,text=”Chat with Lucy Frank”,borderwidth=”2″,bg=”yellow”,font=(“bold”))
frame10.pack(side=TOP,fill=X)

button2=Button(frame10,text=”MORE”)
button2.pack(anchor=”ne”,fill=Y,pady=”20″)

frame11=Label(frame2,text=”Visitors”,width=”35″,bg=”yellow”,font=(“calibri”,12,”bold”))
frame11.pack(side=TOP,fill=X)

frame12=Label(frame2,text=”Anna Williams”,width=”35″,relief=”solid”,borderwidth=2,font=(“calibri”,12))
frame12.pack(side=TOP,fill=X)

frame13=Label(frame2,text=”Lucy Frank”,width=”35″,relief=”solid”,borderwidth=2,font=(“calibri”,12))
frame13.pack(side=TOP,fill=X)

frame14=Label(frame4,text=”yeah, of course we do.Let me have a look for you .”,font=(“calibri”,12,”bold”))
frame14.pack(anchor=”nw”)

frame15=Label(frame4,text=”Thanks !!”,font=(“calibri”,12,”bold”))
frame15.pack(anchor=”ne”,pady=”20″)

frame16=Label(frame4,text=”Are you looking for a specific model or color?”,font=(“calibri”,12,”bold”))
frame16.pack(anchor=”nw”,pady=”20″)

frame17=Label(frame4,text=”Well I would like them pink”,font=(“calibri”,12,”bold”))
frame17.pack(anchor=”ne”,pady=”20″)

frame18=Label(frame4,text=”I see. What size you are after?”,font=(“calibri”,12,”bold”))
frame18.pack(anchor=”nw”,pady=”20″)

frame19=Label(frame2,text=”Joe Fritz”,width=”35″,relief=”solid”,borderwidth=2,font=(“calibri”,12))
frame19.pack(side=TOP,fill=X)

scrolledtext=ScrolledText(frame4)
scrolledtext.pack(fill=BOTH,expand=True)

frame20=Label(frame3,text=”Lucy Frank”,width=”35″,font=(“calibri”,13,”bold”))
frame20.pack(anchor=”nw”,padx=”4″)

image6=PhotoImage(file=”location.png”)
label=Label(frame3,image=image6,width=25,height=25)
label.pack(anchor=”nw”,padx=”10″,pady=”10″)
label=Label(frame3,text=”United States,California,Sunn”,font=(“bold”,10))
label.pack(anchor=”nw”,padx=”10″,pady=”10″)

image7=PhotoImage(file=”mail.png”)
label=Label(frame3,image=image7,width=25,height=25)
label.pack(anchor=”nw”,padx=”10″,pady=”10″)
label=Label(frame3,text=”yashsoni@gmail.com”,font=(“bold”,10))
label.pack(anchor=”nw”,padx=”10″,pady=”10″)

image8=PhotoImage(file=”returning.png”)
label=Label(frame3,image=image8,width=25,height=25)
label.pack(anchor=”nw”,padx=”10″,pady=”10″)
label=Label(frame3,text=”Returning visitor 2 visits,0chats,last seen today “,font=(“bold”,10))
label.pack(anchor=”nw”,padx=”10″,pady=”10″)

image9=PhotoImage(file=”search.png”)
label=Label(frame3,image=image9,width=25,height=25)
label.pack(anchor=”nw”,padx=”10″,pady=”10″)
label=Label(frame3,text=”Came from www.engineernotes.com”,font=(“bold”,10))
label.pack(anchor=”nw”,padx=”10″,pady=”10″)

image10=PhotoImage(file=”shop.png”)
label=Label(frame3,image=image10,width=25,height=25)
label.pack(anchor=”nw”,padx=”10″,pady=”10″)
label=Label(frame3,text=”Shop -Shoes Women “,font=(“bold”,10))
label.pack(anchor=”nw”,padx=”10″,pady=”10″)

root.mainloop()

Leave a Reply

Your email address will not be published. Required fields are marked *