This is how you can make a Simple Uppercase Converter in Python...
You can download the source and .py file Below using the Download button
PROGRAM OUTPUT:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | from tkinter import * root=Tk() root.resizable(False,False) root.title("TEXT CONVERTOR") def convert(): global b a=text1.get("1.0",END) text1.delete("1.0",END) b=a.upper() text1.insert("1.0",b) def copy(): b=text1.get("1.0",END) text1.clipboard_clear() text1.clipboard_append(b) def remove(): text1.delete("1.0",END) text1=Text(root,font=("Arial",15),height=5,width=50) text1.grid(columnspan=3) button1=Button(root,text="CONVERT NOW",bg="lightblue",command=convert) button1.grid() copy=Button(root,text="Copy Text",command=copy,bg="lightgreen") copy.grid(ipadx=20,column=2,row=1) erase=Button(root,text="ERASE",bg="#fa8e70",command=remove) erase.grid(ipadx=20,column=1,row=1) root.mainloop() |
0 Comments