So I tried to use Tkinter Button Alignment in Grid to make a toolbar, but the difference is im using classes. So while they use frame.pack and button.grid, i get the error of using both pack and grid. Here is my code:
class Application(Frame):
def __init__(self, master=None):
super().__init__(master)
self.master = master
self.master.title('Hi!')
self.master.configure(bg='dark grey')
self.pack(fill=X, side=TOP)
self.create_toolbar()
def create_toolbar(self):
Home = Button(text='Home', bd=1)
About = Button(text='About', bd=1)
self.columnconfigure(0, weight=1)
self.columnconfigure(1, weight=1)
Home.grid(row=0, column=0, sticky=W+E)
About.grid(row=0, column=1, sticky=W+E)