r/learnpython • u/Bit_Happy04 • Aug 28 '26
How to make tkinter button same size as entry in a grid?
I'm trying to make a search bar entry widget with a label containing a magnifying glass emoji but can't figure out how to make the label the same height as the entry (so they look connected)?
search_bar = tk.Entry(main_frame, **big_font, **widget_theme1)
search_bar.grid(row=0, column=1, sticky='ew')
search_bar.insert(0,"Search your city")
submit_btn = tk.Button(main_frame, text=" 🔎 ", **widget_theme2, **big_font)
submit_btn.grid(row=0, column=2, sticky='ew')(Changing width/height attributes don't fix this)