Python code for drawing 'a'
Python code for drawing 'b'
Python code for drawing 'c'
Python code for drawing 'd'
Python code for drawing 'e'
Python code for drawing 'f'
Python code for drawing 'g'
Python code for drawing 'h'
Python code for drawing 'i'
Python code for drawing 'j'
Python code for drawing 'k'
Python code for drawing 'l'
Python code for drawing 'm'
Python code for drawing 'n'
Python code for drawing 'o'
Python code for drawing 'p'
Python code for drawing 'q'
Python code for drawing 'r'
Python code for drawing 's'
Python code for drawing 't'
Python code for drawing 'u'
Python code for drawing 'v'
Python code for drawing 'w'
Python code for drawing 'x'
Python code for drawing 'y'
Python code for drawing 'z'
# Draw a from tkinter import * app=Tk() app.title("a") canvas=Canvas(app) canvas.pack() canvas.config(width=480,height=400) canvas.create_arc(250,100,350,200,start=0,extent=180,outline="black",width=5, style="arc") canvas.create_line(350,150,350,253,fill='black',width=5) canvas.create_arc(250,190,380,250,start=55,extent=250,outline="black",width=5, style="arc") app.mainloop()
Python code for drawing 'b'
# Draw b from tkinter import * app=Tk() app.title("b") canvas=Canvas(app) canvas.pack() canvas.config(width=480,height=480) x = 120 # Change x to change position canvas.create_arc(x,x+200,x+200,x+300,start=90,extent=-180,outline="black",width=5, style="arc") canvas.create_line(x+100,x+100,x+100,x+300,fill='black',width=5) app.mainloop()
Python code for drawing 'c'
# Draw c from tkinter import * app=Tk() app.title("c") canvas=Canvas(app) canvas.pack() canvas.config(width=480,height=480) canvas.create_arc(100,160,300,400,start=60,extent=260,outline="black",width=5, style="arc") app.mainloop()
Python code for drawing 'd'
# Draw d from tkinter import * app=Tk() app.title("d") canvas=Canvas(app) canvas.pack() canvas.config(width=480,height=480) x=120 # Change x to change position canvas.create_arc(x,x+200,x+200,x+300,start=90,extent=180,outline="black",width=5, style="arc") canvas.create_line(x+100,x+100,x+100,x+300,fill='black',width=5) app.mainloop()
Python code for drawing 'e'
# Draw e from tkinter import * app=Tk() app.title("e") canvas=Canvas(app) canvas.pack() canvas.config(width=480,height=480) canvas.create_arc(100,120,300,400,start=5,extent=300,outline="black",width=5, style="arc") canvas.create_line(100,250,300,250,fill='black',width=5) app.mainloop()
Python code for drawing 'f'
# Draw f from tkinter import * app=Tk() app.title("f") canvas=Canvas(app) canvas.pack() canvas.config(width=480,height=480) canvas.create_arc(100,50,280,300,start=30,extent=160,outline="black",width=5, style="arc") canvas.create_line(100,190,100,400,fill='black',width=5) canvas.create_line(50,190,150,190,fill='black',width=5) app.mainloop()
Python code for drawing 'g'
# Draw g from tkinter import * app=Tk() app.title("g") canvas=Canvas(app) canvas.pack() canvas.config(width=480,height=480) canvas.create_arc(90,180,270,280,start=90,extent=180,outline="black",width=5, style="arc") canvas.create_line(180,180,180,380,fill='black',width=5) canvas.create_arc(100,330,180,410,start=150,extent=200,outline="black",width=5, style="arc") canvas.create_line(105,350,190,270,fill='black',width=5) app.mainloop()
Python code for drawing 'h'
# Draw h from tkinter import * app=Tk() app.title("h") canvas=Canvas(app) canvas.pack() canvas.config(width=480,height=480) canvas.create_arc(180,300,300,465,start=130,extent=-140,outline="black",width=5, style="arc") canvas.create_line(200,200,200,400,fill='black',width=5) app.mainloop()
Python code for drawing 'i'
# Draw i from tkinter import * app=Tk() app.title("i") canvas=Canvas(app) canvas.pack() canvas.config(width=480,height=480) canvas.create_oval(95,130,105,140,outline="black",width=5) canvas.create_line(100,150,100,300,fill='black',width=5) app.mainloop()
Python code for drawing 'j'
# Draw j from tkinter import * app=Tk() app.title("j") canvas=Canvas(app) canvas.pack() canvas.config(width=400,height=400) canvas.create_line(200,70,200,300,width=5) canvas.create_oval(190,50,205,65,outline="black",width=5) c= 200,350,50,240 arc=canvas.create_arc(c,start=0,extent=-180,fill="",style="arc",width=5) app.mainloop()
Python code for drawing 'k'
# Draw k from tkinter import * app=Tk() app.title("k") canvas=Canvas(app) canvas.pack() canvas.config(width=400,height=400) canvas.create_line(100,20,100,360,width=5) canvas.create_line(100,220,250,100,width=5) canvas.create_line(100,220,250,360,width=5) app.mainloop()
Python code for drawing 'l'
# Draw l from tkinter import * app=Tk() app.title("l") canvas=Canvas(app) canvas.pack() canvas.config(width=480,height=480) canvas.create_line(100,150,100,300,fill='black',width=5) app.mainloop()
Python code for drawing 'm'
# Draw m from tkinter import * app=Tk() app.title("m") canvas=Canvas(app) canvas.pack() canvas.config(width=480,height=480) canvas.create_arc(80,200,200,435,start=130,extent=-140,outline="black",width=5, style="arc") canvas.create_arc(150,200,290,435,start=130,extent=-140,outline="black",width=5, style="arc") canvas.create_line(100,200,100,350,fill='black',width=5) app.mainloop()
Python code for drawing 'n'
# Draw n from tkinter import * app=Tk() app.title("n") canvas=Canvas(app) canvas.pack() canvas.config(width=480,height=480) canvas.create_arc(80,200,200,435,start=130,extent=-140,outline="black",width=5, style="arc") canvas.create_line(100,200,100,350,fill='black',width=5) app.mainloop()
Python code for drawing 'o'
# Draw o from tkinter import * app=Tk() app.title("o") canvas=Canvas(app) canvas.pack() canvas.config(width=400,height=400) canvas.create_oval(120,120,280,300,width=5) app.mainloop()
Python code for drawing 'p'
# Draw p from tkinter import * app=Tk() app.title("p") canvas=Canvas(app) canvas.pack() canvas.config(width=480,height=480) x=80 # Change x to change position canvas.create_arc(x,x+100,x+200,x+200,start=90,extent=-180,outline="black",width=5, style="arc") canvas.create_line(x+100,x+100,x+100,x+300,fill='black',width=5) app.mainloop()
Python code for drawing 'q'
# Draw q from tkinter import * app=Tk() app.title("q") canvas=Canvas(app) canvas.pack() canvas.config(width=480,height=480) canvas.create_arc(80,180,280,280,start=90,extent=180,outline="black",width=5, style="arc") canvas.create_line(180,180,180,380,fill='black',width=5) canvas.create_line(180,380,210,340,fill='black',width=5) app.mainloop()
Python code for drawing 'r'
# Draw r from tkinter import * app=Tk() app.title("r") canvas=Canvas(app) canvas.pack() canvas.config(width=480,height=480) canvas.create_arc(100,200,200,260,start=170,extent=-180,outline="black",width=5, style="arc") canvas.create_oval(190,230,200,240,outline="black",width=5) canvas.create_line(100,200,100,350,fill='black',width=5) app.mainloop()
Python code for drawing 's'
# Draw s from tkinter import * app=Tk() app.title("s") canvas=Canvas(app) canvas.pack() canvas.config(width=300,height=300) x1 = 50 # Change x to change position canvas.create_arc(x1,x1,x1+100,x1+100, start=50,extent=220,outline="black",width=5, style="arc") canvas.create_arc(x1,x1+100,x1+100,x1+200, start=95,extent=-240,outline="black",width=5, style="arc") app.mainloop()
Python code for drawing 't'
# Draw t from tkinter import * app=Tk() app.title("t") canvas=Canvas(app) canvas.pack() canvas.config(width=480,height=480) canvas.create_line(100,50,100,200,fill='black',width=5) canvas.create_line(80,80,120,80,fill='black',width=5) canvas.create_line(100,200,140,180,fill='black',width=5) app.mainloop()
Python code for drawing 'u'
# Draw u from tkinter import * app=Tk() app.title("u") canvas=Canvas(app) canvas.pack() canvas.config(width=400,height=400) canvas.create_line(200,90,200,330,width=5) canvas.create_line(50,90,50,300,width=5) c= 200,350,50,240 arc=canvas.create_arc(c,start=0,extent=-180,fill="",style="arc",width=5) app.mainloop()
Python code for drawing 'v'
# Draw v from tkinter import * app=Tk() app.title("v") canvas=Canvas(app) canvas.pack() canvas.config(width=300,height=300) canvas.create_line(50,7,120,200,width=5) canvas.create_line(200,7,120,200,width=5) app.mainloop()
Python code for drawing 'w'
# Draw w from tkinter import * app=Tk() app.title("w") canvas=Canvas(app) canvas.pack() canvas.config(width=400,height=300) canvas.create_line(50,50,80,200,width=5) canvas.create_line(80,200,175,80,width=5) canvas.create_line(175,80,280,200,width=5) canvas.create_line(280,200,300,50,width=5) app.mainloop()
Python code for drawing 'x'
# Draw x from tkinter import * app=Tk() app.title("x") canvas=Canvas(app) canvas.pack() canvas.config(width=400,height=400) canvas.create_line(100,70,280,380,width=5) canvas.create_line(280,70,100,380,width=5) app.mainloop()
Python code for drawing 'y'
# Draw y from tkinter import * app=Tk() app.title("y") canvas=Canvas(app) canvas.pack() canvas.config(width=400,height=400) canvas.create_line(100,100,195,230,width=5) canvas.create_line(300,100,100,350,width=5) app.mainloop()
Python code for drawing 'z'
# Draw z from tkinter import * app=Tk() app.title("z") canvas=Canvas(app) canvas.pack() canvas.config(width=300,height=300) canvas.create_line(100,50,200,50, fill='black',width=5) canvas.create_line(200,50,100,200, fill='black',width=5) canvas.create_line(100,200,200,200, fill='black',width=5) canvas.create_line(120,130,170,130, fill='black',width=5) app.mainloop()
No comments:
Post a Comment