├── .google-cookie ├── Google drive.png ├── Google.ico ├── README.md ├── Search.ico ├── Search.png ├── apps.jpg ├── gmail.jpg ├── google logo.png ├── google-search-engine.py └── youtube.png /.google-cookie: -------------------------------------------------------------------------------- 1 | #LWP-Cookies-2.0 2 | Set-Cookie3: 1P_JAR="2021-06-11-13"; path="/"; domain=".google.co.in"; path_spec; domain_dot; secure; expires="2021-07-11 13:57:03Z"; version=0 3 | Set-Cookie3: NID="216=M9NektpHMzJpQnXsa1APEREbuP4yH5YCyq8mEhZfVMHYYSD8keZq7C8oyk1xXcR0ULt_nVlX0OfxDJW83r5_IASLE7eUuphxim-ndbMbux5iQF00FeHj2-7bOU1T6yVMmc0NVrWiAtdPidkdeEz5VMyMeXdignV2seQ9KXupqro"; path="/"; domain=".google.co.in"; path_spec; domain_dot; expires="2021-12-11 13:57:03Z"; HttpOnly=None; version=0 4 | Set-Cookie3: CGIC=""; path="/complete/search"; domain=".google.co.in"; path_spec; domain_dot; expires="2021-12-08 13:44:26Z"; HttpOnly=None; version=0 5 | Set-Cookie3: CGIC=""; path="/search"; domain=".google.co.in"; path_spec; domain_dot; expires="2021-12-08 13:44:26Z"; HttpOnly=None; version=0 6 | -------------------------------------------------------------------------------- /Google drive.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Chhotu-Google-GUI/c9c6ea57ec4106c59dd19557b58af1cd5922d942/Google drive.png -------------------------------------------------------------------------------- /Google.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Chhotu-Google-GUI/c9c6ea57ec4106c59dd19557b58af1cd5922d942/Google.ico -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | 2 | # Chhotu-Google-GUI 3 | A simple clone of Google homepage using a tkinter browser. 4 | 5 | Made in India 🧡🤍💚 6 | 7 | made with ![google logo](https://user-images.githubusercontent.com/64016811/121699591-b4d6ca00-caec-11eb-870f-9cac427ad8b1.png) 8 | 9 | -------------------------------------------------------------------------------- /Search.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Chhotu-Google-GUI/c9c6ea57ec4106c59dd19557b58af1cd5922d942/Search.ico -------------------------------------------------------------------------------- /Search.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Chhotu-Google-GUI/c9c6ea57ec4106c59dd19557b58af1cd5922d942/Search.png -------------------------------------------------------------------------------- /apps.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Chhotu-Google-GUI/c9c6ea57ec4106c59dd19557b58af1cd5922d942/apps.jpg -------------------------------------------------------------------------------- /gmail.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Chhotu-Google-GUI/c9c6ea57ec4106c59dd19557b58af1cd5922d942/gmail.jpg -------------------------------------------------------------------------------- /google logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Chhotu-Google-GUI/c9c6ea57ec4106c59dd19557b58af1cd5922d942/google logo.png -------------------------------------------------------------------------------- /google-search-engine.py: -------------------------------------------------------------------------------- 1 | # =============== Importing Suitable Libraries ========================== 2 | from tkinter import * 3 | import tkinter as tk 4 | import webbrowser 5 | from PIL import ImageTk, Image 6 | import googlesearch 7 | # ================== .............. End..........============================ 8 | 9 | # ================== .......... Window Components........ ============================ 10 | 11 | #creating main window 12 | root = tk.Tk() 13 | #title of window 14 | root.title("Chhotu Google") 15 | #window size 16 | root.geometry("900x500") 17 | #window max-size 18 | root.maxsize(1000,700) 19 | #window min-size 20 | root.minsize(400,200) 21 | #window icon 22 | root.iconbitmap('Google.ico') 23 | 24 | # ========================== ............. End............ ===================== 25 | 26 | # ============================== Action Function Code Starts here ==================== 27 | def callback(url): 28 | webbrowser.open(url) 29 | 30 | def search_query(): 31 | 32 | query = text.get("1.0","end-1c") 33 | s = googlesearch.search(query, tld="co.in", num=10, stop=1, pause=2) 34 | for j in s: 35 | print(webbrowser.open(j)) 36 | 37 | 38 | 39 | 40 | #============================== .............. End ................. =================== 41 | 42 | 43 | # ======================== Main Design Window =============================== 44 | 45 | #label to create top design 46 | l1 = Label(root,bg="black",width=500,height=2) 47 | l1.grid(sticky="w") 48 | 49 | #apps logo 50 | apps_logo = ImageTk.PhotoImage(Image.open('apps.jpg')) 51 | d = Label(root, image = apps_logo,borderwidth=0) 52 | d.place(x=15,y=11) 53 | #apps label 54 | apps = Label(root,text="Apps",bg="black",fg="white",cursor="hand2") 55 | apps.place(x=40,y=10) 56 | apps.bind("",lambda e: callback("https://about.google/intl/en/products/?tab=wh")) 57 | 58 | 59 | 60 | # drive logo 61 | d_logo = ImageTk.PhotoImage(Image.open('Google drive.png')) 62 | d = Label(root, image = d_logo,borderwidth=0) 63 | d.place(x=95,y=11) 64 | # drive label 65 | drive = Label(root,text="Google Drive",bg="black",fg="white",cursor="hand2") 66 | drive.place(x=120,y=10) 67 | drive.bind("",lambda e: callback("https://drive.google.com/")) 68 | 69 | 70 | #youtube logo 71 | yt_logo = ImageTk.PhotoImage(Image.open('youtube.png')) 72 | y = Label(root, image = yt_logo,borderwidth=0) 73 | y.place(x=210,y=12) 74 | #youtube label 75 | yt = Label(root,text="YouTube",bg="black",fg="white",cursor="hand2") 76 | yt.place(x=240,y=10) 77 | yt.bind("",lambda e: callback("https://www.youtube.com/")) 78 | 79 | 80 | #Gmail logo 81 | gm_logo = ImageTk.PhotoImage(Image.open('gmail.jpg')) 82 | l2 = Label(root, image = gm_logo,borderwidth=0) 83 | l2.place(x=310,y=12) 84 | 85 | #Gmail label 86 | gmail = Label(root,text="Gmail",bg="black",fg="white",cursor="hand2") 87 | gmail.place(x=340,y=10) 88 | gmail.bind("",lambda e: callback("https://mail.google.com/mail/")) 89 | 90 | 91 | #Gmail label 92 | g = Label(root,text="Gmail",cursor="hand2") 93 | g.place(x=630,y=50) 94 | g.bind("",lambda e: callback("https://mail.google.com/mail/")) 95 | 96 | #Images label 97 | i = Label(root,text="Images",cursor="hand2") 98 | i.place(x=670,y=50) 99 | i.bind("",lambda e: callback("https://www.google.co.in/imghp?hl=en&tab=wi&ogbl")) 100 | 101 | #signin button 102 | signin = Button(root,text="Sign in",font=('roboto',10,'bold'),bg="#4583EC",fg="white",cursor="hand2") 103 | signin.place(x=730,y=50) 104 | signin.bind("",lambda e: callback("http://google.com")) 105 | 106 | 107 | #google logo 108 | g_logo = ImageTk.PhotoImage(Image.open('google logo.png')) 109 | l2 = Label(root, image = g_logo) 110 | l2.place(x=260,y=190) 111 | l33 = Label(root, text = "MAINAK") 112 | l33.place(x=540,y=250) 113 | 114 | 115 | 116 | #search box 117 | text = Text(root,width=90,height=2,relief=RIDGE,font=('roboto',10,'bold'),borderwidth=2) 118 | text.place(x=120,y=300) 119 | 120 | #search button 121 | search = Button(root, text="Google Search",relief=RIDGE,font=('arial',10),bg="#F3F3F3",fg="#222222",cursor="hand2",command=search_query) 122 | search.place(x=280,y=360) 123 | 124 | 125 | #Lucky Button 126 | lucky = Button(root, text="I' m Felling Lucky",relief=RIDGE,font=('arial',10),bg="#F3F3F3",fg="#222222",cursor="hand2") 127 | lucky.place(x=400,y=360) 128 | apps.bind("",lambda e: callback("https://www.google.com/doodles")) 129 | 130 | 131 | 132 | #===================== Load the Window ============================= 133 | root.mainloop() 134 | 135 | #======================= End Code ===================================== -------------------------------------------------------------------------------- /youtube.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Chhotu-Google-GUI/c9c6ea57ec4106c59dd19557b58af1cd5922d942/youtube.png --------------------------------------------------------------------------------