Creating Search Bar using python tkinter | Python tkinter projects samples

Hi All,
we can easily create a simple search bar using python  tkinter here are the example program to create a searc bar
	from tkinter import *
import webbrowser
root = Tk()
root.title("Search bar")
def search():
    url = enter_box.get()
    webbrowser.open(url)
label1 = Label(root,
               text = "Enter URL here",
               font = ("arial", 15, "bold"))
label1.grid(row = 0, column = 0)
enter_box = Entry(root, width = 35)
enter_box.grid(row = 0, column = 1)
btn = Button(root,
             text = "Search",
             command = search,
             bg = "blue",
             fg = "white",
             font = ("arial", 14, "bold"))
btn.grid(row =1, column = 0)
root.mainloop()
Video Reference :

Comments

Popular posts from this blog

Introduction to Python Programming | Python Programming tutorial in Tamil