- Displaying query results in a table format. self.db_entry.grid(row=0, column=1, padx=10, pady=10) Button(root, text="Connect", command=self.connect_to_db).grid(row ...